ubuntu下eclipse安装subclipse之后使用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