12.04 – 启动Eclipse时出现不满意的链接错误和缺少的.so文件
作者:互联网
我昨天升级到12.04测试版.现在,当我尝试启动Eclipse时,我会看到启动画面,然后显示以下错误消息:
An error has occurred. See the log file /home/gabriel/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/1335382319394.log .
日志文件说的是这样的:
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
然后是更多错误消息.
/home/gabriel/.swt/lib/linux/x86_64/目录存在,但为空.我也尝试重新安装eclipse但没有成功.
有任何想法吗?
解决方法:
我在AMD64机器(Ubuntu 12.04)中遇到了同样的问题.并通过解决方法解决了它:
copy:/usr/lib/jni/libswt-*3740.so中包含’3740’的文件到〜/ .swt / lib / linux / x86_64 /
但是,请确保包:libswt-gtk-3-java&已安装libswt-gtk-3-jni.
sudo apt-get install libswt-gtk-3-jni libswt-gtk-3-java
和
sudo cp /usr/lib/jni/libswt-*3740.so ~/.swt/lib/linux/x86_64/
如果您有一个基于32位的系统:
sudo cp /usr/lib/jni/libswt-*3740.so~ / .swt / lib / linux / x86 /
标签:java,eclipse,12-04 来源: https://codeday.me/bug/20190807/1613214.html