Go Down

Topic: Problems, Problems, Problems (Read 2377 times) previous topic - next topic

quackmaster7000

I just bought an Arduino, and I am now using the Arduino software. It seems easy to use, but I am having way too many problems with it. About 80% of the time when I try to open the program, it does not open at all. Also, when I want to open a sketch that I saved, (and yes, I fixed the file associations) it rarely opens. When Arduino DOES open, I have to go into FILE ---> SKETCH ---> OPEN and choose the file manually from the browser. Should I go back to an older version? I am curious why the programmers posted the Alpha version as the primary download like on Arduno.cc...Great software-- I just can't seem to be able to use it! Help!

mellis

Which operating system are you using?

How are you trying to run Arduino?  What happens (when it fails to open successfully)?

As strange as it sounds, opening a sketch directly from your desktop isn't usually a common operation, as sketches that are saved in the default location automatically appear in the Sketchbook menu in the IDE.  It's something that we should fix though.  

The "Alpha" moniker has applied to every version of the software so far; 0010 shouldn't be any more unstable than older versions (in fact, it should be more stable).

quackmaster7000

#2
Dec 28, 2007, 01:07 am Last Edit: Dec 28, 2007, 01:09 am by quackmaster7000 Reason: 1
I am using Windows XP Home Edition. Should I be using a version built into an installer (if that exists?). I did notice that the whole Arduino program doesn't have to be "installed" per say (it's just all in one directory with the executable that accesses the other files needed for it to run in the directory). When it fails to open (when I click it; whether I click the shortcut I mad on my desktop, or the actual executable in the Arduino software directory it does not make a difference), all that happens is my HDD drive flashes for like 5 to 8 seconds, and then stops, not having loaded Arduino. Oddly enough, I am now discovering this stands true for Processing as well. As for the opening files outside of Arduino, how is that not common? What if I want to move, manipulate, and organize my various source code files into categorized folders? I have a lot of different programs written in BASIC and C on my PC, and I like to move them around and manipulate them from Explorer (aka "My Computer") so I can find them easier in the future. I hope that doesn't sound picky or anything... :-/. Is the Arduino software as well as Processing in early development?? Thanks!

quackmaster7000

Man, I just CAN'T get it to work at ALL now! I tried restarting my PC, updating Java, re-downloading the software...I don't know what to do!  :'(

mellis

Have you tried the run.bat?  That's sometimes more reliable than the executable.

quackmaster7000

That doesn't work, either. The command prompt comes up with an error that says: "Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object. Maybe that'll help...?

mellis

Hmm, sounds like the Java install is messed up.  What is JAVA_HOME set to in the run.bat file?  What happens if you open a command prompt, cd to the Arduino directory, and run "run.bat" from there?  Does java\lib\rt.jar exist?

quackmaster7000

Ok. I cd'd to the directory, and tried to run run.bat. Didn't work; came up with the same error. I also tried to run the arduino exec. from there. Same thing. I checked for the rt.jar file. It was there. Just out of curiosity, I tried to run it. Should it have run properly? Because I tried to run it and it said: "Failed to load Main-Class manifest attribute from [...\...\ directory ---> rt.jar]. Hmmm...

mellis

And what's JAVA_HOME set to in the run.bat file?  You might try putting a semi-colon ";" at the end of the set CLASSPATH= line (after mrj.jar).  Or putting the value assigned to CLASSPATH in "double quotes".  Also, try changing the line:

%JAVA_HOME%\java processing.app.Base

to:

%JAVA_HOME%\java -verbose processing.app.Base

It won't fix anything, but might help us figure out what's wrong.  Try running it again and posting the output here.


quackmaster7000

Erm...I don't quite understand what you're getting at. Could you elaborate a little. Thanks!

mellis

Sure.  Open up the run.bat file in a text editor (like notepad or wordpad).  Then it should make more sense.

quackmaster7000

Ok. It says " set JAVA_HOME="java\bin" " (JAVA_HOME set to). I have to admit, when I talked about programming in C, I meant to say variations of C. So, I edited the run.bat file in a text editor...but how can I re-compile it as a .batch file? With something like Bloodshed Dev C++?? I mean, you can't run a text file as a program...Thanks!

mellis

Actually, you can run this type of text file as a program.  Just open it in a text editor, make the changes, and run it again.  No compilation necessary.

quackmaster7000

Nope. Same error as before.  :'(

mellis

What'd you try?  

Did adding -verbose to the command line provide any more information?

Go Up