以下方式在Ubuntu 10.0.4版本,eclipse3.7.0版本下实验通过。
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/share/java /
- -Djava.library.path=/usr/lib/jni
本文转自 zhouhaipeng 51CTO博客,原文链接:http://blog.51cto.com/tianya23/703619,如需转载请自行联系原作者