One may get the following error message when running Subclipse plugin in Eclipse on a Mac OS X.
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 = .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
SVN will still work by some sort of magic, but the official reason for you getting this error is that Eclipse can not find the JavaHL library (under /Library/Java/Extensions). JavaHL is the Java language binding for the Subversion API.
The most painless option is to re-install Subversion as part of the binary package from CollabNet. This will also install JavaHL.
Unfortunately this download requires a registration. This registration is rather painful as well.
Notice that the link for “Snow Leopard” is not the first one. This is a surprising choice, since that is the most recent version of the OS to date.
Make sure to update your .profile file with the following line. Otherwise we will still be using the old version of Subversion.
#!/bin/sh export PATH=/opt/subversion/bin:$PATH
After you’ve updated your .profile file, close your Terminal and open a new one. Make sure that you are using the latest version.
sturgeon-2:~ dmitry$ which svn /opt/subversion/bin/svn sturgeon-2:~ dmitry$ svn --version svn, version 1.6.15 (r1038135) compiled Nov 29 2010, 16:11:54 Copyright (C) 2000-2009 CollabNet. Subversion is open source software, see http://subversion.apache.org/ This product includes software developed by CollabNet (http://www.Collab.Net/). The following repository access (RA) modules are available: * ra_neon : Module for accessing a repository via WebDAV protocol using Neon. - handles 'http' scheme - handles 'https' scheme * ra_svn : Module for accessing a repository using the svn network protocol. - with Cyrus SASL authentication - handles 'svn' scheme * ra_local : Module for accessing a repository on local disk. - handles 'file' scheme * ra_serf : Module for accessing a repository via WebDAV protocol using serf. - handles 'http' scheme - handles 'https' scheme
Restart your Eclipse and you are done. No more warnings. You can verify that you’ve got the right version of JavaHL installed by going into Preferences->Team->SVN. Under “SVN Interface” you will see the version of JavaHL that you are using.