How to upgrade JavaHL on Ubuntu?

痞子三分冷 提交于 2019-12-02 18:05:44

If you do not want to mess around with your Ubuntu packages while you wait for them to update to SVN 1.7.x, one thing you can do is install the CollabNet client RPM. This installs into a private namespace (/opt/CollabNet_Subversion) so it does not alter any of your Ubuntu packages. You can install the RPM by using the "alien" package. We have had Subclipse users confirm that this client works for them.

http://www.open.collab.net/downloads/subversion/linux.html

jlb

(Copied from another answer)

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)

Update: for Ubuntu 14 use the subversion 1.8 repo instead

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

(Thanks to @YetAnotherMatt's answer below)

I think the real problem is that the jni location changed in 14.04 from /usr/lib/jni to something like /usr/lib/x86_64-linux-gnu/jni

I recommend editing your eclipse ini's vmargs java.library.path setting thus

  • ORIGINAL: -Djava.library.path=/usr/lib/jni
  • NEW: -Djava.library.path=/usr/lib/x86_64-linux-gnu/jni

This setting determination from where eclipse expects to locate the library files

YetAnotherMatt

@VishalKale, and anyone else trying to follow @jlb's instructions on more recent versions of Ubuntu, use the Subversion-1.8 repository instead:

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

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

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