Home > eclipse, linux, subversion, ubuntu > Subclipse/Subversion error on Ubuntu: Failed to load JavaHL Library

Subclipse/Subversion error on Ubuntu: Failed to load JavaHL Library

I’ve installed subclipse and when I restart eclipse and try to share a project, I get this error:

The error is:

Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = /usr/lib/jvm/java-6-sun-

In most of the cases is due to the lack of the libsvn-java library, so just install it:

$ sudo apt-get install libsvn-java

Now you have to tell eclipse where to find this libraries. First, locate where the is:

$sudo updatedb

$ locate libsvnjavahl-1.so

Now, edit PATH_TO_ECLIPSE/eclipse.ini and add this line below -vmargs:


This is my full eclipse.ini with the line already added:


If you still get the error, you’d probably modified the wrong eclipse.ini. In my case, I have a copy of eclipse decompressed in /app folder, but I also have eclipse.ini in /etc, /usr/lib/eclipse and /opt/ibm/lotus/notes/framework/rcp/eclipse/plugins/com.ibm.rcp.base_6.2.2.20100729-1241/linux/x86/. So, be sure to modify the correct eclipse.ini.

To check if you have modified the correct eclipse.ini, you can follow the Linux troubleshooting section at http://subclipse.tigris.org/wiki/JavaHL.

  1. Marcos Vidolin
    March 20, 2014 at 3:10

    Reblogged this on Marcos Vidolin's Blog and commented:
    SVN error on Eclipse/Ubuntu: Failed to load JavaHL Library


  2. July 24, 2012 at 15:37

    Excellent, appreciate for you help !


  3. alex
    March 14, 2012 at 16:43

    Great!! Save my day!!


  1. April 29, 2013 at 9:19

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: