首先要确定subclipse的版本,当前最新版本是1.10.x,需要对应的subversion是1.8.x,对应关系见:#head-5ccce53a67ca6c3965de863ae91e2642eab537de
Subclipse Version
SVN/JavaHL Version
1.10.x
1.8.x
1.8.x
1.7.x
1.6.x
1.6.x
1.4.x
1.5.x
1.2.x
1.4.x
1.0.x
1.4.x
目前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 (). 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重启动。