Configuring Eclipse SVN (Subclipse) to use JavaHL(JNI)

Configuring JavaHL for Eclipse is not as straightforward as it could be so posting a quick HOWTO. Following applies mostly to Linux users.

With Ubuntu the fool-proof steps are:

  1. Make sure libsvn-java, subversion and libsvn1 packages are installed
  2. Add following to the end of your eclipse.ini file: -Djava.library.path=/usr/lib/jni
  3. Restart eclipse and make sure JavaHL is selected under Window->Preferences->Team->SVN

By using JavaHL it gets more likely that your svn repo doesn’t get screwed up when using both command-line/shell and subclipse for svn.



Configuring Eclipse to use native SVN client – JavaHL

  • Giuliano Mega

    I had forgotten about this procedure, but thankfully you documented it here. :-)

    Thanks.

  • http://kdpeterson.net Kevin Peterson

    Thanks. You would think subclipse could give a more informative error message than the “unable to load default svn client” I was getting. This fixed it for me.