I am trying to install Subclipse plugins for eclipse IDE. I have installed it but on restart of the IDE, it throws up the following error:

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-

How do I get past this error?


Got it worked out. Very simple solution. Just added


after -vmargs in eclipse.ini file and restarted the IDE.

This solution won't work if you did a manual installation of eclipse, for example if you wanted to use a newer version than the one on the software centre

  • 1
    Why do you say that it won't work with a manual installation? This is actually the recommended way to do it (subclipse.tigris.org/wiki/…)
    – Victor P.
    Apr 30 '12 at 8:12
  • On my 12.04 64bit I had to find the file with 'find / -name libsvnjavahl-1.so' in '-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni' instead.
    – alfonx
    Apr 8 '13 at 11:12

You first need to be sure that libsvn-java is installed (see subclipse Wiki: JavaHL):

apt-get install libsvn-java


If you are running "manually installed" version of Eclipse you can just provide path as runtime parameter.

eclipse -Djava.library.path=/usr/lib/jni

Or better yet, create shell script and launcher that runs it.
I setup my Eclipse environment like this:

  • I download latest and greatest version of Eclipse (at the moment eclipse-java-indigo-SR2-linux-gtk-x86_64.tar.gz)
  • Per version I unpack it to ~/bin/eclipse-java-indigo-SR2-linux-gtk-x86_64/
  • I create a soft link with the name eclipse to previously named unpacked directory:

    cd ~/bin/ 
    ln -s eclipse-java-indigo-SR2-linux-gtk-x86_64 eclipse 
  • I create eclipse.sh script in ~/bin/eclipse/

    # the following is not really needed but is nice if you put script somewhere else (like Desktop)
    cd ~/bin/eclipse/
    # this fixes the menu items not showing bug
    # add the jni library path
    ./eclipse -Djava.library.path=/usr/lib/jni

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.