I have the following issue: after having installed jdk-6u22-linux-i586.bin
and eclipse-SDK-3.5.2-linux-gtk.tar.gz
, when I'm launching Eclipse, the SWT libraries can not be found.
Since I do not have any /usr/lib/jni
directory on my machine, I've come to the conclusion I had to un-jar the org.eclipse.swt.gtk.linux.x86_5.5.2.v3557f.jar
file to get the .so library. I've have relaunched eclipse, including the extraction directory in the java path. The issue still remains:
I have the following error message (notice the addition of -Djava.library.path=...
in the command line):
!SESSION 2015-06-03 14:52:10.343
-----------------------------------------------
eclipse.buildId=M20100211-1343
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: -Djava.library.path=/path.to.the.eclipse.plugins.dir/org.eclipse.swt.gtk.linux.x86_3.5.2.v3557f
Command-line arguments: -os linux -ws gtk -arch x86 -consoleLog -Djava.library.path=/path.to.the.eclipse.plugins.dir/org.eclipse.swt.gtk.linux.x86_3.5.2.v3557f
!ENTRY org.eclipse.equinox.p2.repository 4 0 2015-06-03 14:52:10.764
!MESSAGE ProvisioningEventBus could not be obtained. Metadata caches may not be cleaned up properly.
!ENTRY org.eclipse.osgi 4 0 2015-06-03 14:52:12.119
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3557 or swt-pi-gtk in swt.library.path, java.library.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:254)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:159)
etc.
The libswt-pi-gtk-3557.so
library is indeed inside the org.eclipse.swt.gtk.linux.x86_3.5.2.v3557f
directory, so no joke here. But I do not understand why the program keeps telling me the library can not be found.