How to upgrade JavaHL on Ubuntu?
Asked Answered
J

4

25

Environment

  • Ubuntu 10.10
  • Eclipse Java EE Indigo Service Release 1
  • Subclipse 1.8.x
  • libsvn1 1.6.12
  • svn 1.7.x

Problem

Subclipse 1.8.x requires JavaHL version 1.7.x. I need Subclipse 1.8.x in order to use svn 1.7.x.

Ubuntu 10.10 does not have subversion 1.7 packages or libsvn1 1.7 packages.

Question

Is there any way to upgrade the libsvn1 package on Ubuntu, possibly by configuring another package repository or installing the package directly? If the latter is possible, where can I find the libsvn1/JavaHL packages? Surely someone else must be trying to use svn 1.7 on this Ubuntu version right?

Jordison answered 8/12, 2011 at 16:43 Comment(1)
Why is there a close vote? From the FAQ questions can cover, "software tools commonly used by programmers", or "practical, answerable problems that are unique to the programming profession"Jordison
S
3

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

Samirasamisen answered 9/12, 2011 at 20:44 Comment(0)
N
53

(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)

Nicias answered 29/2, 2012 at 17:16 Comment(2)
This worked. I could not find any other practical solution under Ubuntu/Debian.Franek
But its not working for Trusty Tahr (Ubuntu 14.04)? Do you have any other solution which will help me solve my problem.Chesterton
S
3

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

Samirasamisen answered 9/12, 2011 at 20:44 Comment(0)
M
2

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

Mireille answered 12/5, 2014 at 17:18 Comment(0)
P
2

@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

Pas answered 13/8, 2014 at 19:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.