Eclipse fails to start up in Ubuntu after installing Oracle Java

Problem: Eclipse fails to start, with message –

java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
	no swt-gtk-3740 in java.library.path
	no swt-gtk in java.library.path

Reason: Tries to find these libraries in the corresponding location for OpenJDK.

Fix:
In terminal,sudo gedit/etc/eclipse.ini
Append line (VM args section being last): -Djava.library.path=/usr/lib/jni
Save close the file.
Eclipse should launch successfully now.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy This Password *

* Type Or Paste Password Here *

43,751 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>