我在ubuntu 64使用Eclipse靛蓝.我安装了http://subclipse.tigris.org/update_1.8.x.
起初我得到这个错误:
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-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
然后经过一些谷歌搜索之后,我做到了这一点:
sudo apt-get install libsvn-java
然后在eclipse.ini我添加了这一行:
-Djava.library.path=/usr/lib/jni
然后我创建了这个目录和内容:
~/.eclipse/eclipserc VMARGS="-Djava.library.path=/usr/lib/jni"
我仍然收到这个错误:
Incompatible JavaHL library loaded. 1.7.x or later required.
我还能做些什么?
sudo apt-get purge libsvn-java
然后,添加以下软件源并重新安装:
sudo add-apt-repository ppa:dominik-stadler/subversion-1.7 sudo apt-get update sudo apt-get install libsvn-java
(发现here)
感谢@codemonkeybr:也用-Djava.library.path = /usr/lib / jni更新你的eclipse.ini
(或/usr/lib / x86_64-linux-gnu / jni或/usr/lib / i386-linux-gnu / jni取决于您的系统…)
更新Ubuntu 14使用Subversion 1.8代替:
sudo add-apt-repository ppa:dominik-stadler/subversion-1.8