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.
Good article,add Favorite to the IT Digger website,the link here:
http://bookmovie.org/2008/08/subversive-with-javahl-under-ubuntu.html
It’s works with Eclipse 3.3 on Windows XP SP2.
Thanks a lot !
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!
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 ^_^
Good point Alan! All the arguments after -vmargs are JVM arguments for the given Java implementation.
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.
It did not work for me. I cannot find the files libsvnjavahl-1.so, libsvnjavahl-1.so.0 and libsvnjavahl-1.so.0.0.0 on my Mac although I installd MacPort's subversion-javahl.
Thanks! This info was very handy.
Thank you! After several hours of trying to configure eclipse, your one line fixed everything!
Ubuntu Jaunty / amd64
I followed these instructions but no joy. I get the following in my SVN Connector:
Native JavaHL (0x001000000: 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
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.
Thanks, pal, you made my day!
Fantastic site you have here but I was curious if you knew of any user discussion
forums that cover the same topics talked about in this article?
I’d really love to be a part of group where I can get comments from other experienced individuals that share the same interest. If you have any recommendations, please let me know. Thanks a lot!