Arduino Software Won't Start

I have installed all the correct packages according to the guide.

However when i run the arduino script this is output

cannot initialize Look and Feel: com.sun.java.swing.plaf.gtk.GTKLookAndFeel
error: java.lang.ClassNotFoundException: com.sun.java.swing.plaf.gtk.GTKLookAndFeel not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./,file:./lib/antlr.jar,file:./lib/core.jar,file:./lib/ecj.jar,file:./lib/jna.jar,file:./lib/oro.jar,file:./lib/pde.jar,file:./lib/RXTXcomm.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
java.lang.ClassNotFoundException: com.sun.java.swing.plaf.gtk.GTKLookAndFeel not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./,file:./lib/antlr.jar,file:./lib/core.jar,file:./lib/ecj.jar,file:./lib/jna.jar,file:./lib/oro.jar,file:./lib/pde.jar,file:./lib/RXTXcomm.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.90)
   at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.90)
   at java.lang.ClassLoader.loadClass(libgcj.so.90)
   at java.lang.ClassLoader.loadClass(libgcj.so.90)
   at java.lang.Class.forName(libgcj.so.90)
   at javax.swing.UIManager.setLookAndFeel(libgcj.so.90)
   at javax.swing.UIManager.<clinit>(libgcj.so.90)
   at java.lang.Class.initializeClass(libgcj.so.90)
   at javax.swing.UIManager.getDefaults(libgcj.so.90)
   at javax.swing.JFrame.frameInit(libgcj.so.90)
   at javax.swing.JFrame.<init>(libgcj.so.90)
   at processing.app.Editor.<init>(Editor.java:145)
   at processing.app.Base.handleOpen(Base.java:739)
   at processing.app.Base.handleOpen(Base.java:709)
   at processing.app.Base.handleNew(Base.java:606)
   at processing.app.Base.<init>(Base.java:346)
   at processing.app.Base.main(Base.java:239)
falling back to Metal Look and Feel
Experimental:  JNI_OnLoad called.
Experimental:  JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
Experimental:  JNI_OnLoad called.

Followed by I don’t know how many iterations of

fill background: java.awt.Color[r=0,g=0,b=0]

The program launches but almost immediately stops responding. Ubuntu 9.04

Any help would be greatly appreciated.

Have you loaded the Sun Java Runtime Environment?

Sun Java Runtime (JRE, package sun-java6-jre)

For more version specific --> http://www.arduino.cc/playground/Linux/Ubuntu

yeah i have the jre v6. the specific instructions for my version of ubuntu say that it should work.

ahhhh. looking up at the 8.04 instructions looks like i may have found an answer.

Yep, you probably did...

The gcj can be eliminated, watch for it trying to uninstall stuff you want. In versions previous to 8.04, you had to specify which java you would use, once a Sun version was chosen, Synaptic would leave Open Office alone. I kind of remember looking for it in the 8.04 upgrade and finding it just worked. Once gcj was gone, the Arduino IDE functioned fine.

I had the same issue, don't have to remove gcj though only point to the right java.

Install java:

sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-plugin

After the installation is complete, execute:

sudo update-alternatives --config java

Pick the one that's not GCJ

Win!

Regards, -Will