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

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 or command line

3) change the default JRE to openjdk

$ update-alternatives --config java

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

Reply via email to