Getting Subclipse (and JavaHL) to work in Ubuntu Intrepid Ibex with Eclipse 3.4.2

If after installing Subclipse in Eclipse 3.4.2 you get the error message "Unable to load default SVN", read this quick recipe on how getting Subclipse (and JavaHL) to work in Ubuntu Intrepid Ibex.

First of all I use an Eclipse Bundle built with the Yoxos Eclipse service, but without Subclipse.

The requirements for Subclipse 1.4 are Subversion 1.5 and the JavaHL library.

Subversion 1.5

$ sudo apt-get install subversion
$ svn --version
svn, version 1.5.1 ...

Java and JavaHL

You need to use Java provided by Sun.

$ sudo apt-get install sun-java6-jre

Note: libsvn-javahl is a dummy package to assist with upgrades from Debian 3.0, as libsvn-javahl has been renamed to libsvn-java.

$ sudo apt-get install libsvn-java
$ ls /usr/lib/jni

And set Sun-Java as your default JVM:

$ sudo update-java-alternatives -s java-6-sun


We need to edit the eclipse.ini file to add a line which says where are the JavaHL librairies.

$ gedit ~/.../eclipse.ini
Add at the end the line: -Djava.library.path=/usr/lib/jni

My eclipse.ini file contains:


Now, restart Eclipse.


Follow the screenshot tour of the Subclipse installation process in Eclipse 3.x.

Ajouter un commentaire

Vous pouvez ajouter un commentaire en complétant le formulaire ci-dessous. Le format doit être plain text. Les commentaires sont modérés.

Question: eight + 4 =
Votre réponse: