energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
798 stars 671 forks source link

Energia IDE does not open GUI in fedora 26 #980

Open JasonSmitR opened 7 years ago

JasonSmitR commented 7 years ago

Do not use GitHub issues for project related questions.

After upgrading to fedora 26 the 1.6.10E18 IDE crashes. The only output is

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)

Describe the expected results.

The IDE should appear after the logo but it does not.

Describe the actual results.

Nothing at all happens the process just exits

List the steps to reproduce the problem.

`Run energia on the latest fedora. Not sure if this is related but a similar problem occurred with Arduino (Which energia is based upon?) this was fixed with https://bugzilla.redhat.com/show_bug.cgi?id=1444550

MatteoRagni commented 7 years ago

As for now, I solved by modifying the file $(which energia), commenting line 28 (the line that sets JAVA_OPTIONS) and by launching with:

_JAVA_OPTIONS="" energia

I'm on Arch Linux by the way...

JasonSmitR commented 7 years ago

Thanks @MatteoRagni that works like a charm

orfloresti commented 6 years ago

Thanks, @MatteoRagni. It works for me too.

lorforlinux commented 6 years ago

try this technique https://youtu.be/7swyUs6QzPo

FernandoFong commented 6 years ago

Thank you @MatteoRagni, you were right!

cyphunk commented 6 years ago

This issue also appears on latest Archlinux:

java.lang.Error: Cannot load com.sun.java.swing.plaf.gtk.GTKLookAndFeel

To resolve, similar to @MatteoRagni suggestion, in the energia script change:

JAVA_OPTIONS=("-DAPP_DIR=$APPDIR" "-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel")

to:

JAVA_OPTIONS=("-DAPP_DIR=$APPDIR" )