Could not load SWT library
在64位的Ubuntu里面装32位的JVM 其中Java可以正常运行 启动eclipse是log里面出现这个。
!SESSION 2013-08-06 23:45:45.336 -----------------------------------------------
eclipse.buildId=4.3.0.I20130605-2000
java.version=1.6.0_32
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=zh_CN
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.jee.product
!ENTRY org.eclipse.osgi 4 0 2013-08-06 23:45:46.407
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
/home/tang/data/eclipse/configuration/org.eclipse.osgi/bundles/656/1/.cp/libswt-pi-gtk-4332.so: libgtk-x11-2.0.so.0: 无法打开共享对象文件: 没有那个文件或目录
no swt-pi-gtk in java.library.path
/home/tang/.swt/lib/linux/x86/libswt-pi-gtk-4332.so: libgtk-x11-2.0.so.0: 无法打开共享对象文件: 没有那个文件或目录
Can't load library: /home/tang/.swt/lib/linux/x86/libswt-pi-gtk.so
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:331)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:240)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:31)
Ubuntu的命令为:
tang@ubuntu:~$ cd .swt/lib/linux/
tang@ubuntu:~/.swt/lib/linux$ ll
总用量 12
drwxrwxr-x 3 tang tang 4096 8月 6 22:41 ./
drwxrwxr-x 3 tang tang 4096 8月 6 22:41 ../
drwxrwxr-x 2 tang tang 4096 8月 6 22:41 x86/
tang@ubuntu:~/.swt/lib/linux$ cd x86/
tang@ubuntu:~/.swt/lib/linux/x86$ ll
总用量 408
drwxrwxr-x 2 tang tang 4096 8月 6 22:41 ./
drwxrwxr-x 3 tang tang 4096 8月 6 22:41 ../
-rwxr-xr-x 1 tang tang 406976 8月 6 22:41 libswt-pi-gtk-4332.so*
网上试过很多方法,复制的也不可以,求大神们给给思路,或者解决方法