GTKLookAndFeel Issue
In reference to the following error:
java.lang.Error: Cannot load com.sun.java.swing.plaf.gtk.GTKLookAndFeel
at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1351)
at javax.swing.UIManager.initialize(UIManager.java:1459)
at javax.swing.UIManager.maybeInitialize(UIManager.java:1426)
at javax.swing.UIManager.getLookAndFeel(UIManager.java:492)
at processing.app.linux.GTKLookAndFeelFixer.installGtkPopupBugWorkaround(GTKLookAndFeelFixer.java:79)
at processing.app.linux.Platform.setLookAndFeel(Platform.java:40)
at processing.app.Base.guardedMain(Base.java:214)
at processing.app.Base.main(Base.java:136)
After some research, this appears to be a problem in energia itself that was fixed in the arduino ide, which energia is derived from. For reasons unknown to me, that fix has not been propagated. The energia issue for this is still open and not assigned on github (https://github.com/energia/Energia/issues/980).
To work around this problem, as root, edit the 'energia' script located in /opt/energia/, change line 28 from this:
JAVA_OPTIONS=("-DAPP_DIR=$APPDIR" "-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel")
To this:
JAVA_OPTIONS=("-DAPP_DIR=$APPDIR")
Once a fix is available, I will incorporate it here.
GTKLookAndFeel Issue
In reference to the following error:
After some research, this appears to be a problem in energia itself that was fixed in the arduino ide, which energia is derived from. For reasons unknown to me, that fix has not been propagated. The energia issue for this is still open and not assigned on github (https://github.com/energia/Energia/issues/980).
To work around this problem, as root, edit the 'energia' script located in /opt/energia/, change line 28 from this:
To this:
Once a fix is available, I will incorporate it here.