# java errors

**URL:** <https://forum.arduino.cc/t/java-errors/47240>\
**Category:** Troubleshooting\
**Created:** [December 20, 2006, 4:37am UTC](https://forum.arduino.cc/t/java-errors/47240 "2006-12-20T04:37:39Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [December 20, 2006, 4:37am UTC](https://forum.arduino.cc/t/java-errors/47240/1 "2006-12-20T04:37:39Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![mellis](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mellis](https://forum.arduino.cc/u/mellis)\
**Post date:** [December 20, 2006, 3:44pm UTC](https://forum.arduino.cc/t/java-errors/47240/2 "2006-12-20T15:44:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [December 20, 2006, 8:17pm UTC](https://forum.arduino.cc/t/java-errors/47240/3 "2006-12-20T20:17:40Z")

</div>

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](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!

---

<div class="post-metadata">

**Author:** ![mellis](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mellis](https://forum.arduino.cc/u/mellis)\
**Post date:** [December 21, 2006, 6:28pm UTC](https://forum.arduino.cc/t/java-errors/47240/4 "2006-12-21T18:28:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [December 21, 2006, 9:09pm UTC](https://forum.arduino.cc/t/java-errors/47240/5 "2006-12-21T21:09:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mellis](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mellis](https://forum.arduino.cc/u/mellis)\
**Post date:** [December 21, 2006, 11:36pm UTC](https://forum.arduino.cc/t/java-errors/47240/6 "2006-12-21T23:36:16Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [December 21, 2006, 11:52pm UTC](https://forum.arduino.cc/t/java-errors/47240/7 "2006-12-21T23:52:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mellis](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mellis](https://forum.arduino.cc/u/mellis)\
**Post date:** [December 23, 2006, 1:45pm UTC](https://forum.arduino.cc/t/java-errors/47240/8 "2006-12-23T13:45:15Z")

</div>

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/](http://winavr.sourceforge.net/)) from [WinAVR - Browse Files at SourceForge.net](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.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [February 13, 2007, 6:30am UTC](https://forum.arduino.cc/t/java-errors/47240/9 "2007-02-13T06:30:09Z")

</div>

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

> **[Install the Arduino Software (IDE) on Windows PCs](https://www.arduino.cc/en/Guide/Windows/)**
>
> Open-source electronic prototyping platform enabling users to create interactive electronic objects.

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!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [February 15, 2007, 6:09am UTC](https://forum.arduino.cc/t/java-errors/47240/10 "2007-02-15T06:09:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [March 6, 2007, 9:04pm UTC](https://forum.arduino.cc/t/java-errors/47240/11 "2007-03-06T21:04:47Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![mellis](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mellis](https://forum.arduino.cc/u/mellis)\
**Post date:** [March 7, 2007, 3:19pm UTC](https://forum.arduino.cc/t/java-errors/47240/12 "2007-03-07T15:19:29Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 8:15pm UTC](https://forum.arduino.cc/t/java-errors/47240/13 "2021-05-06T20:15:35Z")

</div>

Closed on May 6, 2021, 8:15pm UTC


