I've run into problems installing the latest Subclipse plug in. I saw this post: subclipse: Unable to load default SVN Client, but the answer appears to be specific for Subclipse 1.6.x, and I think 1.8.x is presenting new issues. I'm on a mac, 10.6.8, with Eclipse Indigo. I have Subclipse 1.8.4 installed, with the Subversion JavaHL Native Library Adapter 1.7.3 installed, which is the correct version of JavaHL 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", then gives me this error:
Failed to load JavaHLLibrary.These are the errors that were encountered:no libsvnjavahl-1in java.library.path no svnjavahl-1in java.library.path no svnjavahl in java.library.path java.library.path =.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
But when I tried to add a new SVN repository, I received the error: "Unable to load defaul SVN client"
Any ideas what I'm doing wrong?
Thanks
回答1:
Go to Eclipse > Preferences > Team > SVN Under "SVN interface", choose "SVNKit". Worked for me.
回答2:
I want to clarify all the steps I took to resolve this problem, in case future readers who are complete novices like me are banging their head against this like I was. As of Feb, 2012, the most current version of Subclipse is 1.8, which requires Subversion 1.7. It seems like macs need additional JavaHL libraries, which I can only find for Subversion 1.6. So you have to remove Subclipse 1.8 and instead install version 1.6. This may all change if CollabNet provides JavaHL libraries for subversion 1.7.
Remove Subclipse 1.8 - In Eclipse, under the help menu, choose Install New Software. Near the bottom, on the right hand side, click the link "What is already installed?" Near the top, you should see CollabNet Merge Client, version 3.0.x, or something similar (I think this is installed with Subclipse 1.8), click uninstall and follow the steps to uninstall. (Eclipse will then ask you to restart, click not now. ) Scroll down to the bottom, if you see Subclipse, version 1.8.x, click uninstall and follow the steps. Again, click "not now" when eclipse asks to restart.
Download Subclipse 1.6. You should still be in the Install New Software window. Near the top, where is says Work with: paste in http://subclipse.tigris.org/update_1.6.x, download all the files (you may not need these, but I downloaded them all to be safe). Again, eclipse will ask you to restart, hit not now, and close down eclipse instead.
Download Subversion from CollabNet - Go to http://www.open.collab.net/downloads/community/ and download the Subversion 1.6 for the correct version of your mac OS. After downloading, open the installer and install it. EDIT: You may want to restart your mac at this point.
Add subversion to java default library path - Now it gets a little tricky. Open the eclipse.ini file (for instructions to find the eclipse.ini file, read this: http://wiki.eclipse.org/Eclipse.ini#-vm_value:_Mac_OS_X_Example - note that it is not the same as the config.ini file in the eclipse folders). After opening the eclipse.ini file, copy and paste -Djava.library.path=/opt/subversion to the end of it. Save and close.
Now restart Eclipse, and hopefully it will work.
I have no idea why this is such a process. I installed Sublipse on a windows machine last year, and it was really easy. Thanks to everyone for their help!
Just an additional note: this is also useful in order to downgrade from 1.8 to 1.6 and be able to sync with older repositories.
# sudo port -v selfupdate# sudo port install subversion-javahlbindings# sudo port upgrade --enforce-variants active +universal
回答6:
I am on Ubuntu and don't have a Mac to validate my answer, but obviously (from your error message) your JavaHL library cannot be found on the java.library.path.
This has nothing to do with the plugin you mentioned (org.tigris.subversion.clientadapter.javahl_1.7.3.jar), don't move that anywhere else. From your link (http://subclipse.tigris.org/wiki/JavaHL#head-5ccce53a67ca6c3965de863ae91e2642eab537de) I assume you tried to install from openCollabNet, which installs the library into /opt/subversion, which is not listed on your java.library.path. You could give it a try and edit eclipse.ini to contain a line like
-Djava.library.path=/opt/subversion
in the -vmargs section; I am not sure if this will solve your problem but it might give you an indication (for example, by getting another error message to proceed with).
I am sorry that I cannot really check my answer, but this hint might help you solving the issue.
回答7:
I use Eclipse Version: Kepler Service Release 1, Build id: 20130919-0819 on Mac 10.9 and I managed to fix this by installing Subversion using brew:
brew install --universal --java subversion
After running the above command, the installation summary was displayed stating:
svntools have been installed to: /usr/local/opt/subversion/libexec
I went to the /usr/local/opt/subversion/ folder and I searched for the needed jars. 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: