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
即可。