[转]ubuntu下eclipse的svn插件使用javahl

ubuntu下eclipse安装subclipse之后使用javaHL作为连接器会出现一下错误:
1 Failed to load JavaHL Library.
2 These are the errors that were encountered:
3 no libsvnjavahl-1 in java.library.path
4 no svnjavahl-1 in java.library.path
5 no svnjavahl in java.library.path
6 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

你可能感兴趣的:(eclipse)