java errors

I'm running the Arduino IDE on win XP, the ide runs fine, but i loaded the led_blink example program and whenever i try to compile or upload it, i get a number of NullPointerExceptions from processing.app.RunnerException down to java.awt.EventDispatchThread.run, etc. Any idea what is causing this, or tips to fix it. I've seen similar errors on other posts, but there haven't been alot of responses and the few suggestions there were didn't help. Anyone have ideas? Thanks so much!

Can you post the full text of the errors you get?

java.lang.NullPointerException
at processing.app.RunnerException.massage(RunnerException.java:69)
at processing.app.RunnerException.(RunnerException.java:39)
at processing.app.Sizer.computeSize(Sizer.java:73)
at processing.app.Sketch.size(Sketch.java:1656)
at processing.app.Sketch.exportApplet(Sketch.java:1748)
at processing.app.Editor$38.run(Editor.java:1866)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Which are the exact same errors posted here
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1156988790

I went to the extreme of uninstalling Java from my computer, even though from what i understand, with run.bat it uses it’s own copy of java. But even uninstalling java didn’t help. Any ideas? The board and all works just fine on another computer, just not on my laptop.

Thanks!

It looks like its a problem running avr-size to compute the size of your sketch. If you open a command prompt, and "cd" to the Arduino application directory, what happens if you run "tools\avr\bin\avr-size"?

I've added code to Arduino 0007 which should hopefully mean that this problem won't stop your sketch from being uploaded; you just won't be able to tell how big it is. I'll send you a private message with a modified version of pde.jar to test.

I ran avr-size, and it processed a bit then ended without any output. I used your modified version of pde.jar and i don't get the errors from before i just get a "Couldn't determine program size" message and it hangs there, failing to upload. Thanks for you help.

Huh. The upload should continue even if the size of the sketch can't be determined. Can you post the text that gets output when you try to upload? Do you have other programs that use cygwin open while you're running Arduino? What happens if you run "tools\avr\bin\uisp" from a command line in the Arduino application directory?

That's all it says. "Couldn't Determine Program Size" Like when i compile, it says in red, couldn't determine program size, and sits there saying compiling in the status bar but doesn't finish.

Nope, no cygwin.

uisp does the same thing, processes a bit, then finishes, without any output.

Thanks again.

Hmm, it sounds like the avr tools are broken, since they should produce at least an error message saying that they were missing command line arguments (I think; I haven’t tested this). What happens if you cd into the tools\avr\bin directory and then simply type “uisp”? If the avr tools won’t run, you won’t be able to upload sketches from Arduino, since it’s done by those tools. Are you running Windows XP 64 bit? Try downloading WinAVR (http://winavr.sourceforge.net/) from http://sourceforge.net/project/showfiles.php?group_id=68108. Will its tools run? If so, you might try replacing the Arduino ones with those versions.

:-/
Just installed Arduino SW and followed the steps here

I’m seeing the same problem (Couldn’t determine program size: )

The avr tools are not the same as the WinAVR tools so you can’t easily ‘swap them out’. When you do
there are a myriad of Java errors.

at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.(Unknown Source)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at processing.app.Uploader.uisp(Uploader.java:172)
at processing.app.Uploader.uploadUsingPreferences(Uploader.java:78)
at processing.app.Sketch.upload(Sketch.java:1693)
at processing.app.Sketch.exportApplet(Sketch.java:1755)
at processing.app.Editor$40.run(Editor.java:1892)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

So what utility gives thee error message “Couldn’t determine program size:” ?

Thanks!

Ok, Dumped the last computer - And old POS with WindowsXP Home with a mess of things. Loaded on and XP Pro box. Working fine! ;D

Hi. I've been trying to install Arduino on my MacBook (OSX), but the following message keeps popping up:

Uncaught exception in main method: java.lang.UnsatisfiedLinkError: /Applications/ arduino-0007/librxtxSerial.jnilib:

Any suggestions?

mezusa: you should probably start a new post for you problem, since it's different than the one described here. Do you have a librxtxSerial.jnilib file in your arduino-0007 directory?