Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
19
rated 0 times [  19] [ 0]  / answers: 1 / hits: 34219  / 3 Years ago, wed, august 11, 2021, 4:39:44

I upgraded to the 12.04 beta yesterday. Now, when I try to start Eclipse, I get the splash screen and then this error message:



An error has occurred. See the log file /home/gabriel/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/1335382319394.log .


The log file says something like this:



java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
no swt-gtk-3740 in java.library.path
no swt-gtk in java.library.path
Can't load library: /home/gabriel/.swt/lib/linux/x86_64/libswt-gtk-3740.so
Can't load library: /home/gabriel/.swt/lib/linux/x86_64/libswt-gtk.so


followed by many more error messages.



The /home/gabriel/.swt/lib/linux/x86_64/ directory exists, but is empty. I also tried reinstalling eclipse with no success.



Any ideas?


More From » 12.04

 Answers
0

I have got the same issue in an AMD64 machine (Ubuntu 12.04). and solved it by a workaround:



copy: files containing '3740' in /usr/lib/jni/libswt-*3740.so to ~/.swt/lib/linux/x86_64/



But, be sure the packages : libswt-gtk-3-java & libswt-gtk-3-jni are installed.



sudo apt-get install libswt-gtk-3-jni libswt-gtk-3-java


And



sudo cp /usr/lib/jni/libswt-*3740.so ~/.swt/lib/linux/x86_64/


if you have a 32 bits based system :
sudo cp /usr/lib/jni/libswt-*3740.so ~/.swt/lib/linux/x86/


[#39101] Thursday, August 12, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
donurp

Total Points: 328
Total Questions: 128
Total Answers: 123

Location: Faroe Islands
Member since Thu, Apr 8, 2021
3 Years ago
;