Home > linux, software development, ubuntu > Subversive with JavaHl under Ubuntu

Subversive with JavaHl under Ubuntu

No Gravatar

Eclipse SVN plugin Subverisve comes with javaHl support for windows, but not for linux.

Under linux you could use SVNKit, but that is somewhat slower, and a bit buggy. That is an out-of-box solution. But you could use javaHl JNI svn client too.

Under Ubuntu it could be done in 5 minutes. Just follow the next steps:

Install JavaHL:

sudo apt-get install libsvn-java

Modify eclipse.ini:

-showsplash
org.eclipse.platform
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Djava.library.path=/usr/lib/jni
-Xms40m
-Xmx512m
-XX:MaxPermSize=400m

Where -Djava.library.path=/usr/lib/jni does the magic. The /usr/lib/jni ougth contain:

$ ls /usr/lib/jni/
libsvnjavahl-1.so  libsvnjavahl-1.so.0  libsvnjavahl-1.so.0.0.0

So if you are not under Ubuntu, locate those so files and adjust the path.

This works for me under Eclipse 3.4 (not tested on 3.3 or 3.2) with:

org.polarion.eclipse.team.svn.connector_2.0.2.I20080801-1500.jar
org.polarion.eclipse.team.svn.connector.javahl_2.0.2.I20080801-1500.jar

That’s it! Have fun.

  • Share/Bookmark
  1. August 13th, 2008 at 18:14 | #1

    Good article,add Favorite to the IT Digger website,the link here:

    http://bookmovie.org/2008/08/subversive-with-javahl-under-ubuntu.html

  2. Babar
    September 10th, 2008 at 10:55 | #2

    It’s works with Eclipse 3.3 on Windows XP SP2.
    Thanks a lot !

  3. September 10th, 2008 at 15:29 | #3

    A short update on the topic.

    About a week ago Subversion 1.5 update appeared in Ubuntu Hardy. If you do automatic update, like I do, you must have it now.

    For that you’ll need the new Native JavaHL 1.5 Implementation for Subversive.

    Important! Do not forget to remove flag “Show merged revisions” (Window > Preferences > Team > SVN > SVN Connector tab) if you’re connected to server using Subversion version <1.5!

  4. Alan
    September 17th, 2008 at 13:52 | #4

    Just for cleanness’s sake, since I don’t know a lot about hte eclipse.ini file (which I would suppose containing single-line self-contained statements): the -Djava.library.path should be written in the -vmwargs section. It took me half an our to figure out ^_^

  5. September 17th, 2008 at 20:01 | #5

    Good point Alan! All the arguments after -vmargs are JVM arguments for the given Java implementation.

  6. September 22nd, 2008 at 08:15 | #6

    I’m happy to announce that this solution works for Apple Mac OS X 10.4 and 10.5 as well.

    I’ve tested it with: Subversion 1.5 (openCollabnet package), Eclipse 3.4, Subversive SVN Connector 2.0.3.

  7. William
    February 13th, 2009 at 02:19 | #7

    Thanks! This info was very handy.

  8. April 23rd, 2009 at 21:31 | #8

    Thank you! After several hours of trying to configure eclipse, your one line fixed everything!

    Ubuntu Jaunty / amd64

  9. MrKimi
    July 2nd, 2009 at 10:00 | #9

    I followed these instructions but no joy. I get the following in my SVN Connector:
    Native JavaHL (0×001000000: Could not initialize class org.tigris.subversion.javahl.SVNClient)

    I’ve gone around this several times. I thought I was not using the trigris stuff, It is supposed to be polarion isn’t it?

    Any help appreciated

    • July 2nd, 2009 at 10:36 | #10

      Hi MrKimi!

      First of all, make sure you have installed the libsvn-java.
      Second, you must have JavaHl connector from polarion: Subversive SVN 1.5 JavaHL Connector. – The 1.6 version is no good, as the libsvn-java is the 1.5 version API.

      I hope that will help.

  1. No trackbacks yet.