2015-07-10 11:06:50
来 源
中存储网
Ubuntu
Ubuntu升级到12.04后,Subclipse不能正常工作,打开后报错: Failed to load JavaHL Library. These are the errors that were encountered: no libsvnjavahl-1 in java.library.path no svnjavahl-1 in java.library.path no svnjavahl in java.library.path

Ubuntu升级到12.04后,Subclipse不能正常工作,打开后报错:

Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = /usr/lib/jni

看来是原来指定 的JavaHL的路径失效了。能过命令:

sudo find /usr -name libsvnjavahl-1.so

查找其中的缺失文件,发现在文件位于:

/usr/lib/x86_64-linux-gnu/jni/libsvnjavahl-1.so

说明Ubuntu升级到12.04以后,JavaHL Library的位置由原来/usr/lib/jni改为了/usr/lib/x86_64-linux-gnu/jni

所以解决方法就是打开eclipse安装目录下的eclipse.ini文件,将原来配置的

-Djava.library.path=/usr/lib/jni

改为

-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni

即可。

声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。