Subheading and headache of JavaHL installation

I'm having trouble installing the latest Subclipse plug-in. I saw this post: subclipse: The default SVN client failed to load , but the answer seems to be for Subclipse 1.6.x, and I think 1.8.x represents new problems. I am on mac, 10.6.8, with Eclipse Indigo. I have installed Subclipse 1.8.4 with installed Subversion JavaHL Native Library Adapter 1.7.3, which is the correct JavaHL version for Subclipse 1.8, according to http://subclipse.tigris.org/wiki/JavaHL#head-5ccce53a67ca6c3965de863ae91e2642eab537de

When I tried to add a new SVN repository, it says “operation in progress” and then gives me this error:

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 

I also tried removing all subquery plugins and instead installed the subversion openCollabNet package as recommended here: http://subclipse.tigris.org/wiki/JavaHL#head-5bf26515097c3231c1b04dfdb22c036bc511926b

But when I tried to add a new SVN repository, I got an error: "Failed to load defaul SVN client"

Any ideas what I'm doing wrong?

thank

+50
java eclipse subclipse javahl
Feb 15 '12 at 23:35
source share
10 answers

I want to clarify all the steps that I have taken to solve this problem if future readers who are new to me hit my head about it like me. As of February 2012, the latest version of Subclipse is 1.8, which requires Subversion 1.7. Mac seems to require additional JavaHL libraries, which I can only find for Subversion 1.6. Therefore, you should remove Subclipse 1.8 and install version 1.6 instead. This can all change if CollabNet provides the JavaHL libraries for subversion 1.7.

  • Uninstall Subclipse 1.8 - In Eclipse, on the help menu, select Install New Software. Bottom bottom, on the right side, click the link "What is already installed?" At the top you should see CollabNet Merge Client, version 3.0.x or something similar (I think it is installed with Subclipse 1.8), click "Uninstall" and follow the uninstall steps. (Eclipse will ask you to restart your computer, do not click now.) Scroll down if you see Subclipse, version 1.8.x, click the "Delete" button and follow these steps. Again, click "not now" when eclipse asks for a reboot.

  • Download Subclipse 1.6. You should still be in the Install New Software window. Next to the top where it says "Work with: insert http://subclipse.tigris.org/update_1.6.x , upload all the files (you may not need this, but I downloaded them all to be safe), Again, eclipse will ask you to restart, hit not now, and close the eclipse instead.

  • Download Subversion from CollabNet - go to http://www.open.collab.net/downloads/community/ and download Subversion 1.6 for the correct version of your Mac OS. After downloading, open the installer and install it. EDIT: You can restart your Mac at this point.

  • Adding subversion to the default java library path - now it gets a little trickier. Open the eclipse.ini file (read the following for instructions on finding the eclipse.ini file: http://wiki.eclipse.org/Eclipse.ini#-vm_value:_Mac_OS_X_Example - note that this is not the same as config. ini file in eclipse folders). After opening the eclipse.ini file, copy and paste -Djava.library.path = / opt / subversion at the end. Save and close.

  • Now restart Eclipse and hopefully it works.

I have no idea why this is such a process. Last year, I installed Sublipse on a Windows machine, and it was very simple. Thank you all for your help!

One more note: this is also useful for upgrading from 1.8 to 1.6 and being able to synchronize with old repositories.

+33
Feb 16 '12 at 17:38
source share

Go to Eclipse> Settings> Command> SVN In the "SVN interface" section, select "SVNKit". Worked for me.

+53
Oct 26
source share

I have used the answer provided by Rafael https://stackoverflow.com/a/464829/

It worked for me too. enter image description here

+13
May 23 '13 at 2:11
source share

To fix this, simply install the package with:

 sudo apt-get install libsvn-java 

You must configure eclipse.inito add path / jni

For example:

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

In Ubuntu-13.04 32bits you need to edit the file:

 $ sudo vi /usr/lib/eclipse/eclipse.ini 

And add the path:

 -Djava.library.path=/usr/lib/i386-linux-gnu/jni 

From this blog

+9
May 03 '13 at 6:46
source share

Check out this link for a solution: http://www.breathedevelopment.com/node/49 This worked for me and it just hopefully helps

 # sudo port -v selfupdate # sudo port install subversion-javahlbindings # sudo port upgrade --enforce-variants active +universal 
+7
Sep 04
source share

I am on Ubuntu and do not have a Mac to test my answer, but obviously (from your error message) your JavaHL library cannot be found on java.library.path.

This has nothing to do with the plugin you mentioned (org.tigris.subversion.clientadapter.javahl_1.7.3.jar), do not move it anywhere. From your link ( http://subclipse.tigris.org/wiki/JavaHL#head-5ccce53a67ca6c3965de863ae91e2642eab537de ) I assume that you tried to install from openCollabNet, which installs a library in / opt / subversion that is not specified in your java.library. Track . You can try and edit eclipse.ini to contain a string like

 -Djava.library.path=/opt/subversion 

in the -vmargs section; I am not sure if this will solve your problem, but may give you an indication (for example, by receiving another error message).

I'm sorry that I cannot verify my answer, but this tip will help you solve the problem.

+6
Feb 16 '12 at 12:37
source share

I am using Eclipse Version: Kepler Service Release 1, Build id: 20130919-0819 on Mac 10.9, and I was able to fix this by installing Subversion using brew:

brew install --universal --java subversion

After executing the above command, the installation summary was displayed:

svntools have been installed to: /usr/local/opt/subversion/libexec

I went to the / usr / local / opt / subversion / folder, and I searched for the right banks. I found them in / lib, so in the eclipse.ini file I added:

-Djava.library.path=/usr/local/opt/subversion/lib

I also installed the Subversion plugin from Eclipse using this link:

http://subclipse.tigris.org/update_1.10.x

and he fixed the problem.

+3
Dec 23 '13 at 12:51
source share

Try installing the javaHL connector, you can download them from this website

http://www.collab.net/downloads/subversion#tab-3

0
Dec 28
source share

I finally abandoned the use of JavaHL and I installed SVNKit 1.6 (remember to also install the “Client SVN Adapter” and “SVNKit Adapter”).

... and it worked.

0
Apr 12 '13 at 19:30
source share

If running on macosx, the correct installation method using brew for java:

 brew install subversion --with-java 

then you should do the following:

 sudo mkdir -p /Library/Java/Extensions sudo ln -s /usr/local/lib/libsvnjavahl-1.dylib /Library/Java/Extensions/libsvnjavahl-1.dylib 

as a mention on the subclipse-wiki project wiki

0
Mar 08 '17 at 2:54 on
source share



All Articles