7

I'm using Eclipse Juno on Mac 10.7.5. I installed Subversive and also have this version of svn installed on my Mac:

Daves-MacBook-Pro:clever davea$ svn --version
svn, version 1.7.9 (r1462340)
   compiled Apr  3 2013, 12:31:42

I'm having problems getting SVN to work with Eclipse, in particular, when trying to select the appropriate SVN Connector. I'd like to use "Native JavaHL" but when going Eclipse -> Preferences -> Team -> SVN and clicking the "SVN Connector" tab, there appears to be an error when trying to select JavaHL. The menu option next to "SVN Connector" states:

Native JavaHL 0x00100000: Cannot load libraries: Could not initialize class org.tigris.subversion.javahl…

Unfortunately the message cuts off, so my question is, what is the proper way to install this connector (or should I be using a different one) so that Eclipse/SVN/Subversive can work in peace and harmony together?

Dave
  • 17,420
  • 96
  • 300
  • 582
  • Why don"t you use Subversive's own connector? – ihsan kocak Aug 06 '13 at 08:25
  • Looking around, I found this svn connector for eclipse that looks promising: http://subclipse.tigris.org/ I don't know if its any good but maybe it will work around your issue. – Dan Schnau Aug 08 '13 at 17:22

3 Answers3

2

To get this working for Eclipse Juno 3.8.2 on my Mac (Mountain Lion):

  • I added the Subversive plugin to Eclipse using Help->Install New Software and select Collaboration->Subversive SVN Team Provider
  • I installed the JavaHL library using MacPorts: sudo port install subversion-javahlbindings +no_bdb +universal, as described here. (The link also includes a Homebrew command: brew install --universal --java subversion)
  • I downloaded the "allplatforms" 3.0.4 connectors archive from Subversive Connector Archives for Subversive 1.0/1.1 and extracted this to a local directory
  • Added this directory as a local repository in Eclipse Install New Software->Add.. which then gives you the ability to add the bundled SVN connectors, JavaHL or SVNKit. I used Native JavaHL 1.8 implementation for my SVN 1.8 install.
Andy Birchall
  • 181
  • 1
  • 2
  • 11
0

If you look at the installation instructions for Subversive, you find there the following remark:

For all other platforms (MacOS, Linux, etc.), you should install a platform-independent pure-Java SVNKit connector, or additionally install a package that contains JavaHL binaries for the target platform.

And later, it is stated:

If you've installed JavaHL connector on a non-Win32 platform or if you want to use a different set of JavaHL binaries, you should do the following ...

with a recipe to make it known to Eclipse.

On an older blog post, I found the following:

sudo port install subversion-javahlbindings

I do not know if that is true any more, the Stackoverflow question references the explanation at tigris, so the command from above is true if you use MacPorts, for HomeBrew, the command is

brew install --universal --java subversion

Community
  • 1
  • 1
mliebelt
  • 14,995
  • 7
  • 50
  • 90
  • Hi, I was able to run the "sudo port install subversion-javahlbindings" command successfully, but after restarting my system and firing up Eclipse, the error I mentioned above remains. – Dave Aug 12 '13 at 13:37
  • Have you updated your PATH or LD_LIBRARY_PATH, so that the installed libraries (`/opt/subversion/lib/libsvnjavahl-1.0.dylib`) are included? – mliebelt Aug 13 '13 at 06:25
  • Tried that too, but sadly, the same result. – Dave Aug 13 '13 at 13:25
0

Did you try adding the JAVAHL folder to eclipse.ini and restarting it? For example, for running Subclipse in my linux distro, I added this line to eclipse.ini (in eclipse root folder)

Below -vmargs

-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni
Abhilash Divakaran
  • 4,089
  • 1
  • 16
  • 15
  • Hi, I added "-Djava.library.path=/opt/subversion/lib/libsvnjavahl-1.0.dylib" to the end of my "/Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse.ini" file, but alas, no dice. – Dave Aug 12 '13 at 21:28