7
votes

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?

3
Why don"t you use Subversive's own connector?ihsan kocak
Looking around, I found this svn connector for eclipse that looks promising: subclipse.tigris.org I don't know if its any good but maybe it will work around your issue.Dan Schnau

3 Answers

2
votes

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.
0
votes

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

0
votes

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