Package Details: energia 1.8.10E23-1

Git Clone URL: https://aur.archlinux.org/energia.git (read-only, click to copy)
Package Base: energia
Description: Energia is a Arduino IDE clone for use with the MSP430 launchpad
Upstream URL: http://energia.nu/
Licenses: GPL
Provides: energia
Submitter: will.price94
Maintainer: mpento
Last Packager: mpento
Votes: 23
Popularity: 0.000000
First Submitted: 2013-01-07 23:18 (UTC)
Last Updated: 2020-03-08 13:47 (UTC)

Dependencies (4)

Required by (1)

Sources (3)

Pinned Comments

mpento commented on 2018-01-21 14:49 (UTC) (edited on 2018-01-21 14:50 (UTC) by mpento)

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.

Latest Comments

1 2 3 4 5 6 7 Next › Last »

mpento commented on 2020-03-08 13:48 (UTC)

Updated to 1.8.10E23

mpento commented on 2019-02-09 21:46 (UTC)

Updated to 1.8.7E21

mpento commented on 2018-01-21 14:49 (UTC) (edited on 2018-01-21 14:50 (UTC) by mpento)

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.

mpento commented on 2018-01-21 14:17 (UTC)

Fixed energia.install (1.6.10E18-4):

xdg-icon-resource: file '/usr/share/pixmaps/energia_16.png' does not exist error: command failed to execute correctly

mpento commented on 2018-01-20 05:13 (UTC)

@letik, udev rules updated (1.6.10E18-3) to match those posted on energia.nu

Tested with a blink program to an MSP-430G2.

will.price94 commented on 2017-11-23 18:13 (UTC)

I don't have time to maintain this package any more, I've abandoned it should someone else wish to maintain it.

letik commented on 2017-11-22 12:20 (UTC)

Hey there, Even with adding my user to the uucp & lock group, I couldn't upload the program to a MSP432 (0451:bef3). I changed the permission in the udev file to 666, same as the official one: http://energia.nu/files/71-ti-permissions.rules This may need to be updated. Thanks

1CatchMe1 commented on 2017-08-27 20:30 (UTC) (edited on 2017-08-27 20:35 (UTC) by 1CatchMe1)

It was solved by removing "-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel" from the script file, but I don't know why?? Is there a problem with LD_LIBRARY_PATH ?

will.price94 commented on 2017-08-17 21:31 (UTC)

Have you tried unsetting JAVA_TOOL_OPTIONS? $ JAVA_TOOL_OPTIONS= energia Can you post the output of $ echo $JAVA_TOOL_OPTIONS

will.price94 commented on 2017-08-17 21:31 (UTC)

Have you tried unsetting JAVA_TOOL_OPTIONS? $ JAVA_TOOL_OPTIONS= energia Can you post the output of $ echo $JAVA_TOOL_OPTIONS