ubuntu下eclipse的svn插件使用javahl

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/jvm/java-6-sun-1.6.0.20/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/i386:/usr/lib/xulrunner-addons:/usr/lib/xulrunner-addons:/usr/java/packages/lib/i386:/lib:/usr/lib

 

这是由于eclipse找不到javaHL引起的,解决办法:

1.安装javaHL

sudo apt-get install libsvn-java

2.编辑eclipse.ini

在-vmargs下增加:

-Djava.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

 

你可能感兴趣的:(eclipse)