Techno

things which came out my laptop

Failed to Load JavaHL Library

| Comments

Today after upgrading eclipse to juno(4.2) and installing subclipse 1.6, I got following error on Ubuntu 12.04 installtion,

1
2
3
4
5
6
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/jni:/lib

I run into this error every time I upgrade eclipse as subclipse needs javahl library. Usually a fix is to install javahl from ubuntu repo,

1
sudo apt-get install libsvn-java

But this time it did not fix the issue, I got same error after restarting eclipse.

I found that javahl library location has been changed to /usr/lib/x86_64-linux-gnu/jni on ubuntu 64 (12.04) using find command

So updated java.library.path location in $ECLIPSE_HOME/eclipse.ini file from

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

to

1
-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni

and that did the trick!

Comments