首先要確定subclipse的版本,當前最新版本是1.10.x,需要對應的subversion是1.8.x,對應關系見:http://subclipse.tigris.org/wiki/JavaHL#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 (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重啟動。