Eclipse – What SVN connector do I need to use for Eclipse Juno Subversive on Mac

connectoreclipsesubversivesvn

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?

Best Answer

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.