$ vi /home/yan/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/1338821859239.log
!SESSION 2012-06-04 22:57:33.880 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=zh_TW
Command-line arguments: -os linux -ws gtk -arch x86
!ENTRY org.eclipse.osgi 4 0 2012-06-04 22:57:45.020
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-pi-gtk-3740 in java.library.path
no swt-pi-gtk in java.library.path
Can't load library: /home/yan/.swt/lib/linux/x86/libswt-pi-gtk-3740.so
Can't load library: /home/yan/.swt/lib/linux/x86/libswt-pi-gtk.so
解:
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/jni/
$ eclipse
Reference :
How do you set a library path in java ? (Java in General forum at JavaRanch)
沒有留言:
張貼留言