Getting subclipse to work on Ubuntu 64 and Indigo - Incompatible JavaHL library loaded. 1.7.x or later required

怎甘沉沦 提交于 2019-12-02 21:58:44

Remove your existing libsvn-java:

sudo apt-get purge libsvn-java

Then, add the following software source and re-install:

sudo add-apt-repository ppa:dominik-stadler/subversion-1.7
sudo apt-get update
sudo apt-get install libsvn-java

(found here)

thanks to @codemonkeybr: also update your eclipse.ini with -Djava.library.path=/usr/lib/jni

(or /usr/lib/x86_64-linux-gnu/jni or /usr/lib/i386-linux-gnu/jni depending on your system ...)

Update for Ubuntu 14 use Subversion 1.8 instead:

sudo add-apt-repository ppa:dominik-stadler/subversion-1.8
wojtek

On Ubuntu 64 (12.04 or 12.10), try /usr/lib/x86_64-linux-gnu/jni

Good luck

And on Ubuntu 32 (12.04), modify the eclipse.ini:

-Djava.library.path=/usr/lib/i386-linux-gnu/jni

For those who are reluctant to install any software from third party repositories I would just recommend to install version 1.6.x of Subclipse instead of the latest 1.8.x one. Details can be found here

For those following @jlb's instructions above but getting the following (or similar) error:

Failed to fetch http://ppa.launchpad.net/dominik-stadler/subversion-1.7/ubuntu/dists/trusty/main/source/Sources  404  Not Found

That repository hasn't been updated for later versions of Ubuntu, but the equivalent subversion-1.8 repository has.

First, remove the 1.7 repository in Synaptic Package Manager (instructions here: http://www.maketecheasier.com/remove-repositories-in-ubuntu/ ), then:

sudo add-apt-repository ppa:dominik-stadler/subversion-1.8
sudo apt-get update
sudo apt-get install libsvn-java

And follow the rest of the instructions on editing eclipse.ini as above.

dixiedude

check out this topic: Installing Subversion JavaHL library in Mac OS X

u may change the SVN interface of Eclipse to SVNKit(pure java)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!