Install Subversion to Eclipse and Netbeans on Ubuntu 9.0.4

It is not my first time to install Subversion, but it is worth to record what I did. My system is Ubuntu 9.0.4 and Eclipse 3.5 and Netbeans 6.5.

Following the official documentation, I got the error in Eclipse: “Incompatible JavaHL library loaded.  1.6.x or later required.”

The reason is clear: JavaHL is not properly install or might version is too old.

Try: “sudo  apt-get install libsvn-java”, but no update.

I had to compile from source code now according to [1]. The tricky part is to let Eclipse know where is JavaHL. I tried add “-Djava.library.path=/usr/local/lib” to “eclipse.ini”, but did not work. Only “export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH” works for me.

Since Eclipse works now, it is time to try Netbeans according to [4]. Just figure out where is SVN using “which svn” and then following the instrunction.

Reference:
[1]http://en.newinstance.it/2009/05/13/making-eclipse-javahl-working-recompiling-subversion-from-the-sources/

[2]http://islandlinux.org/howto/installing-javahl-subclipseeclipse-ubuntu

[3]http://www.nileshk.com/svn_in_eclipse_subversive_and_svnkit_for_subversion_1_6

[4]http://netbeans.org/kb/docs/ide/subversion.html

Incompatible JavaHL library loaded.  1.6.x or later required.
Advertisements

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 )

Google+ photo

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

Connecting to %s