Ubuntu12.04,eclipse安装Subclipse1.8.X
http://subclipse.tigris.org/update_1.8.x (支持Subversion 1.7.x)
问题1.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
首先在终端运行:sudo apt-get install libsvn-java安装JavaHL,
然后看看原来指定 的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
即可
问题2.Incompatible JavaHL library loaded. 1.7.x or later required.
安装javaHL1.7
sudo add-apt-repository ppa:dominik-stadler/subversion-1.7
sudo apt-get update
sudo apt-get install libsvn-java
打开eclipse:window-preferences-team-SVN,在设置里面的SVN接口中选择javaHL1.7,确定,问题解决。