On 23/09/13 18:42, Scott Howard wrote: > On Sat, Sep 21, 2013 at 7:09 AM, Andrew Atkinson <a...@wotcc.org.uk> wrote: >> Exception in thread "main" java.lang.ExceptionInInitializerError >> at processing.app.Preferences.setColor(Preferences.java:851) >> at processing.app.Preferences.init(Preferences.java:273) >> at processing.app.Base.main(Base.java:117) >> Caused by: java.awt.HeadlessException >> at >> sun.awt.HeadlessToolkit.getMenuShortcutKeyMask(HeadlessToolkit.java:237) >> at processing.core.PApplet.<clinit>(Unknown Source) >> ... 3 more > > > Thanks Andrew, to help us debug could you try the following and report > back with what happens? > > 1) what is the output of: > > java -version
java version "1.7.0_21" OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-5) OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) > > 2) edit (as superuser) /usr/bin/arduino and change the last line from: > > java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel > processing.app.Base "$@" > > to > java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel > -Djava.awt.headless=true processing.app.Base "$@" > > then try running the arduino command from the menu Nothing >command line Exception in thread "main" java.lang.ExceptionInInitializerError at processing.app.Preferences.setColor(Preferences.java:851) at processing.app.Preferences.init(Preferences.java:273) at processing.app.Base.main(Base.java:117) Caused by: java.awt.HeadlessException at sun.awt.HeadlessToolkit.getMenuShortcutKeyMask(HeadlessToolkit.java:237) at processing.core.PApplet.<clinit>(Unknown Source) ... 3 more > > 3) change the default JRE to openjdk > > $ update-alternatives --config java There are 6 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status ------------------------------------------------------------ * 0 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 auto mode 1 /usr/bin/gij-4.4 1044 manual mode 2 /usr/bin/gij-4.6 1046 manual mode 3 /usr/bin/gij-4.7 1047 manual mode 4 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java 1061 manual mode 5 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode 6 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual mode Press enter to keep the current choice[*], or type selection number: Okay that is lots of choice, seems that it is already openjdk, so I will try java-6 (choice 4) instead of 7 Looks like same error, with one number changed Exception in thread "main" java.lang.ExceptionInInitializerError at processing.app.Preferences.setColor(Preferences.java:851) at processing.app.Preferences.init(Preferences.java:273) at processing.app.Base.main(Base.java:117) Caused by: java.awt.HeadlessException at sun.awt.HeadlessToolkit.getMenuShortcutKeyMask(HeadlessToolkit.java:231) at processing.core.PApplet.<clinit>(Unknown Source) ... 3 more out of time of today, happy to try others later if that will help? Andrew > > then try running arduino > > > I think it might have something to do with having both the sun and > openjdk jres installed. > > ~Scott > -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org