Skip to content

IDE does not launch Ubuntu 18.10 #8119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
danieleperot opened this issue Oct 20, 2018 · 3 comments
Closed

IDE does not launch Ubuntu 18.10 #8119

danieleperot opened this issue Oct 20, 2018 · 3 comments
Labels
OS: Linux Specific to the Linux version of the Arduino IDE

Comments

@danieleperot
Copy link

danieleperot commented Oct 20, 2018

I downloaded the new IDE 1.8.7 for Linux x64.
I am using the Oracle version of JDK and JRE.
While trying to lunch the IDE, i got the following error:

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:44)
	at processing.app.Base.<init>(Base.java:239)
	at processing.app.Base.main(Base.java:145)

I got it fixed by changing line 28 in the arduino script from:

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

to

JAVA_OPTIONS=("-DAPP_DIR=$APPDIR")

I hope this can help somebody with the same problem I had!

@danieleperot danieleperot changed the title IDE does not lunch Ubuntu 18.10 IDE does not launch Ubuntu 18.10 Oct 20, 2018
@facchinm
Copy link
Member

Hi @danieleperot ,
thanks for reporting! Are you using any particular flavour of Ubuntu or is it the plain image?

@facchinm facchinm added the OS: Linux Specific to the Linux version of the Arduino IDE label Oct 22, 2018
@facchinm
Copy link
Member

I've been able to reproduce it with a clean 18.10 installation. The problem is related with 18.10 shipping without libgtk2.0 installed by default; I'm pushing a workaround soon.

@danieleperot
Copy link
Author

I can confirm that installing libgtk2.0 does fix the issue.
Thank you very much!

cmaglie added a commit to cmaglie/Arduino that referenced this issue Oct 24, 2018
@cmaglie cmaglie closed this as completed in 0458770 Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS: Linux Specific to the Linux version of the Arduino IDE
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants