红联Linux门户
Linux帮助

ubuntu下eclipse的svn插件使用javahl

发布时间:2017-06-17 09:31:29来源:blog.csdn.net/c1481118216作者:绝月残风
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
 
本文永久更新地址:http://www.linuxdiyf.com/linux/31540.html