Install Eclipse in Ubuntu
sudo apt-get install ECLIPSE-CDT eclipse
When the installation is complete, an error box appears when you start the program:
An error has occurred. See the log file
/home/Good/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/1417143109545.log.
Open File Discovery error message:
! ENTRY Org.eclipse.osgi 4 0 2014-11-27 18:51:50.739
! MESSAGE Application Error
! STACK 1
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/good/.swt/lib/linux/x86_64/libswt-gtk-3740.so
Can ' t load library:/home/good/.swt/lib/linux/x86_64/libswt-gtk.so
SWT-GTK didn't find it.
So it's customary to enter
sudo apt-get install swt-gtk-3740
The result is:
E:unable to locate package swt-gtk-3740
So in the System library directory, the results found in/usr/lib/jni/there are several LIBSWT beginning of the library files. In error, either this path is added to the Java.library.path , or the file is placed / The home/x/.swt/lib/linux/x86_64/ directory.
Choose to use the latter, but not like copying duplicate files, so just make a symbolic connection.
Ln-s/usr/lib/jni/libswt-*3740.so ~/.swt/lib/linux/x86_64/
Then run eclipse again, and it will start normally.
Install eclipse in Ubuntu, run error handling