ubuntu下eclipse的svn插件使用javahl

ubuntu下eclipse安装subclipse之后使用javaHL作为连接器会出现一下错误:

1
2
3
4
5
6
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

 

subclipse的安装参考:

subclipse: http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA

      http://subclipse.tigris.org/update_1.6.x

javaHL : http://subclipse.tigris.org/wiki/JavaHL

你可能感兴趣的:(ubuntu下eclipse的svn插件使用javahl)