How to upgrade JavaHL on Ubuntu?

Dave L. picture Dave L. · Dec 8, 2011 · Viewed 22.4k times · Source

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?

Answer

jlb picture jlb · Feb 29, 2012

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