Package Details: energia 1.6.10E18-4

Git Clone URL: https://aur.archlinux.org/energia.git (read-only)
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.370581
First Submitted: 2013-01-07 23:18
Last Updated: 2018-01-21 14:14

Pinned Comments

mpento commented on 2018-01-21 14:49

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

mpento commented on 2018-01-21 14:49

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

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

@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

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

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

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

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

Have you tried unsetting JAVA_TOOL_OPTIONS?

$ JAVA_TOOL_OPTIONS= energia

Can you post the output of

$ echo $JAVA_TOOL_OPTIONS

wiltonsr commented on 2017-08-16 22:10

The program doesn't open for me. I get this erro when try open it in terminal:

$ energia
Picked up JAVA_TOOL_OPTIONS:
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)

What I need to do?
Thanks

MicroJoe commented on 2017-03-19 13:24

When installing I get the following warning:

xdg-icon-resource: file '/usr/share/pixmaps/energia_16.png' does not exist

But no incidence on running the software. The .desktop file has the correct icon once installed.

All comments