红联Linux门户
Linux帮助

Ubuntu 13.04下ADT安装Subclipse出现JAVAHL错误的解决方法

发布时间:2014-06-27 09:47:27来源:红联作者:velcbo
首先要确定subclipse的版本,当前最新版本是1.10.x,需要对应的subversion是1.8.x,对应关系见:http://subclipse.tigris.org/wiki/JavaHL#head-5ccce53a67ca6c3965de863ae91e2642eab537de

目前Ubuntu 13.04应用中心的subversion是:subversion 1.7.5-1ubuntu3.1,所以1.10.x版本的subclipse是不能装的。

安装subclipse1.8.x,eclipse->install new software-->add subclipse1.8.x地址,pending以后,把子项都选上,安装。

重启eclipse以后,出现寻找JAVAHL错误,error信息:

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/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

解决办法

If you do not need to use JavaHL, Subclipse also provides a pure-Java SVN API library -- SVNKit (http://svnkit.com). Just install the SVNKit client adapter and library plugins from the Subclipse update site and then choose it in the preferences under Team > SVN.

Go to Eclipse > Preferences > Team > SVN Under "SVN interface", choose client as "SVNKit(Pure Java) SVNKit v..xx". Worked for me.

我这样就可以了,如果还不行,试试把Eclipse重启动。

作者:intergameover
文章评论

共有 0 条评论