What SVN connector do I need to use for Subversion Eclipse Juno on Mac?

I am using Eclipse Juno on Mac 10.7.5. I installed Subversive, as well as 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 am having problems with SVN for working with Eclipse, in particular, when trying to select the appropriate SVN connector. I would like to use "Native JavaHL", but when I go to Eclipse -> Preferences -> Team -> SVN and click on the "SVN Connector" tab, an error appears when trying to select JavaHL. The menu option next to "SVN Connector" indicates:

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

Unfortunately, the message is disconnected, so my question is how to properly install this connector (or should I use another) so that Eclipse / SVN / Subversive can work in peace and harmony?

+6
source share
3 answers

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 contains the Homebrew command)
  • I downloaded the allplatforms 3.0.4 socket archive from Subversive Connector Archives for Subversive 1.0 / 1.1 and extracted it to the local directory
  • This directory has been added as a local repository in Eclipse Install New Software-> Add .., which then gives you the ability to add related SVN connectors, JavaHL or SVNKit. I used Native JavaHL 1.8 to install SVN 1.8.
+2
source

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

For all other platforms (MacOS, Linux, etc.), you must install a platform-independent, clean Java SVNKit connector, or optionally install a package containing JavaHL binaries for the target platform.

And later it is said:

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

with a recipe to make it famous for Eclipse.

On an older blog post, I discovered the following:

sudo port install subversion-javahlbindings

I don’t know if this is true, the question fooobar.com/questions/207592 / ... refers to the explanation in tigris , so the command above is correct if you are using MacPorts for HomeBrew , the command

brew install --universal --java subversion

0
source

Have you tried adding the JAVAHL folder to eclipse.ini and restarting it? For example, to run Subclipse on my linux distribution, I added this line to eclipse.ini (in the root folder of eclipse)

Below -vmargs

 -Djava.library.path=/usr/lib/x86_64-linux-gnu/jni 
0
source

Source: https://habr.com/ru/post/950548/


All Articles