Got
Windows 7 - 64 bit
Eclipse indigo
Java VM 64 bit
javahl from http://www.sliksvn.com (64 bit version) properly installed
path environment variable points also to the folder containing javahl librarires
When installing subclipse, I'm getting
Incompatible JavaHL library loaded. 1.6.x or later required.
What should I do to get subclipse properly working ?
The message should have said 1.6.x required. You probably installed SlikSVN 1.7.x. Just install Subclipse 1.8 which is designed for SVN 1.7. It also includes the JavaHL 64-bit binaries now.
I think the preferred solution is to upgrade to subclipse 1.8 if possible. If you can't do that (e.g., because other dependencies like m2e-eclipse are still using subclipse 1.6), then you just need to install an earlier (1.6) version of SlikSVN x64.
For instance, you can get:
http://www.sliksvn.com/pub/Slik-Subversion-1.6.17-x64.msi.
which did the job for me when SlikSVN 1.7.1 (current as of this writing) failed with the exact error provided in the original question.
Just strip the MSI off the URL to see a list of previous releases:
http://www.sliksvn.com/pub/
You might try to run Eclipse with "run as administrator" during the install. I have noticed that otherwise part of the install goes to wrong folders.
Related
I'm having problems installing the right version of Subclipse to use with Mac OS X 10.9.1 (which comes with subversion 1.7.10) and Eclipse 4.3.1.
http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA says it's necessary to use Subclipse 1.8.x with Subversion 1.7, and to use the Eclipse Market Center to install it. Unfortunately the Market Center only lists Subclipse 1.10.3, not 1.8.x, so I installed the following components directly from the Subclipse 1.8.x Update Site (http://subclipse.tigris.org/update_1.8.x):
Subclipse 1.8.22
Subversion Client Adapter 1.8.6
Subversion JavaHL Native Library Adapter 1.7.10
Now, when I use any of the Subclipse commands from the Team menu I get an error
"Incompatible JavaHL library loaded. 1.7.x or later required."
even though Installation Details shows I have 1.7.10 installed. Is anything else required to get the JavaHL adapter to work?
Update: http://subclipse.tigris.org/wiki/JavaHL says I need to compile subversion and add a link /Library/Java/Extensions/libsvnjavahl-1.dylib. Now subclipse works but is out of step with the command line tools, so I guess I need to replace all the /usr/bin/svn* commands with the ones I've just compiled. I'm making progress, but it sure would be nice if people didn't hardcode quite so many specific version dependencies.
After updating to Snow Lion I started receiving these errors in Flash Builder / Eclipse when trying to use SVN:
Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
/opt/subversion/lib/libsvnjavahl-1.0.dylib: Library not loaded: /usr/lib/libpq.5.dylib Referenced from: /opt/subversion/lib/libsvnjavahl-1.0.dylib Reason: no suitable image found. Did find: /usr/lib/libpq.5.dylib: mach-o, but wrong architecture /usr/lib/libpq.5.dylib: mach-o, but wrong architecture
no svnjavahl in java.library.path
java.library.path = .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
Try this:
Select Window >> Preferences
Expand Team >> SVN
Under SVN interface set Client to SVNKit (Pure Java) SVNKit....
If you do not need to use JavaHL, Subclipse also provides a pure-Java SVN API library -- SVNKit (http://svnkit.com). Just install the SVNKit client adapter and library plugins from the Subclipse update site and then choose it in the preferences under Team > SVN.
On Kubuntu, my path to the library changed because of installing another Java version. Here's the whole picture, but in short:
sudo apt-get install libsvn-java
sudo find / -name libsvnjavahl-1.so
The output from the last command could look like this, for example:
/usr/lib/x86_64-linux-gnu/jni/libsvnjavahl-1.so
This gives you the path, so you can add the following to your eclipse.ini:
-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni/
Check out this blog. It has a ton of information.
Also if installing through brew don´t miss this note:
You may need to link the Java bindings into the Java Extensions folder:
$ sudo mkdir -p /Library/Java/Extensions
$ sudo ln -s /usr/local/lib/libsvnjavahl-1.dylib /Library/Java/Extensions/libsvnjavahl-1.dylib
I Just installed Mountain Lion and had the same problem
I use FLashBuilder (which is 32bit) and MountainLion is 64bit, which means by default MacPorts installs everything as 64bit. The version of subclipse I use is 1.8
As i had already installed Subversion and JavaHLBindings I just ran this command:
sudo port upgrade --enforce-variants active +universal
This made mac ports go through everything already installed and also install the 32bit version.
I then restarted FlashBuilder and it no longer showed any JavaHL errors.
You may or may not need JavaHL depending on your OS. In addition to other suggestions just posting this here.
For other OS see this source: http://subclipse.tigris.org/wiki/JavaHL
maybe you can try this: change jdk version.
And I resolved this problem by change jdk from 1.6.0_37 to 1.6.0.45 .
BR!
i tried every single solution available and finally for me the problem was:
uninstall Native JavaHL 1.6
install everything under Subclipse from this site:
http://subclipse.tigris.org/update_1.10.x>
For me i started getting this problem when I upgraded to java 8, and then reverted back to java 7. Upgraded again to java 8 and the problem got resolved.
For Eclipse/STS v3.9.X windows user, you may need to update your subclipse version.
Go to Help > Install New Software > Click on Subclipse and edit the version from 1.6.X to 1.8.X
This method also apply to those who encounter JavaHL not available. You can check whether JavaHL is available or not by Go to Windows > Preference > Team > SVN. You may check it in SVN Interface > Client section.
If this work on MAC OS, kindly response in comment section. :)
My Understanding - Basically, svn client comes by default on Mac os. While installing in eclipse we should match svn plugin to the mac plugin and javaHL wont be missing. There is a lengthy process to update by installing xcode and then by using homebrew or macports which you can find after googling but if you are in hurry use simply the steps below.
1) on your mac terminal shell
$ svn --version
Note down the version e.g. 1.7.
2) open the link below
http://subclipse.tigris.org/wiki/JavaHL
check which version of subclipse you need corresponding to it. e.g.
Subclipse Version SVN/JavaHL Version
1.8.x 1.7.x
3) ok, pick up url corresponding to 1.8.x from
http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA
and add to your eclipse => Install new Software under help
select whatever you need, svn client or subclipse or mylyn etc and it will ask for restart of STS/eclipse thats it you are done. worked for me.
NOTE: if you already have multiple versions installed inside your eclipse then its best to uninstall all subclipse or svn client versions from eclipse plugins and start fresh with steps listed above.
I'm trying to get Subversion working under Eclipse 3.7 in a 64 bit Kubuntu 11.10 but having problems. I've installed subclipse 1.8.1, installed 'libsvn-java' and have added -Djava.library.path=/usr/lib/jni/ under the -vmargs in the /usr/lib/eclipse/eclipse.ini file, but now getting the error message:
Incompatible JavaHL library loaded. 1.7.x or later required.
and can't seem to find out how to upgrade my JavaHL. I've reinstalled the subclipse plugin, which apparently also installs JavaHL version 1.7.1, so perhaps this isn't a case of JavaHL not being installed, but perhaps unfindable? - Anyone with any ideas?
** EDIT **
As mentioned below the links provided in the accepted answer have stopped working, but you can download updated files here (credit to Rekhyt) but you will need subclipse version 1.8.x which you can install by adding http://subclipse.tigris.org/update_1.8.x to Eclipse
I installed subclipse 1.8 first then installed these files in order:
libsvn-java_1.7.2-0ubuntu0~ppa1_amd64.deb
subversion_1.7.2-0ubuntu0~ppa1_amd64.deb
libsvn1_1.7.2-0ubuntu0~ppa1_amd64.deb
If you need 32 bit go to the launchpad page and click the 'subversion - 1.7.2-0ubuntu0~ppa1' link at the bottom of the page - this will bring up all the relevant files
Alternatively, you may do the following, which automates the package installation:
apt-add-repository ppa:dominik-stadler/subversion-1.7
apt-get update
apt-get dist-upgrade
Because of that
First of all I had to uninstall the old packages before installing the new ones (thanks to Sergi)
for i386
go to here
install in order geb packages
libsvn1_1.7.1-0ubuntu0~ppa4_i386.deb (979.2 KiB)
subversion_1.7.1-0ubuntu0~ppa4_i386.deb (1.2 MiB)
libsvn-java_1.7.1-0ubuntu0~ppa4_i386.deb
for amd64
go to here
install in order geb packages
libsvn1_1.7.1-0ubuntu0~ppa4_amd64.deb (1.0 MiB)
subversion_1.7.1-0ubuntu0~ppa4_amd64.deb (1.2 MiB)
libsvn-java_1.7.1-0ubuntu0~ppa4_amd64.deb (446.7 KiB)
it worked for me.
Sadly, I can't comment yet (or I don't understand how this site works :-)), but maybe Dave Shuck interested in it: if you change the dependencies of the .deb package, and remove the libserf-private everything works fine. Easiest to do that with this script: videbcontrol
Since I cannot comment yet and my edit has been rejected:
I stumbled across the same problem. The repositories of Xubuntu 10.11 are out of date. Packages can be found at this location. Proceed according to javaloper's posting.
Download files libserf, libaprutil, libsvn1, subversion, libsvn-java from here.
During download choose appropriate environment i.e 32bit or 64bit version.
Windows 7 64 Bits, Eclipse Indigo, SlickSVN 1.6.17 all installed with path to the libraries entered in windows.
Why do I get the message JAVAHL (JNI) Not available and why does eclipse not load these libraries?
Have you tried installing SilkSVN as suggested on the subclipse official FAQ?
Then on Eclipse/MyEclipse go to Window>Preferences>Team>SVN Change the client to SVNKit v1.XXX.
That did the trick for me.
Did you close down Eclipse before running the SlikSVN 64 bit installation?
I had the same issue initially.
Close Eclipse, rerun the SlikSVN install, choose Repair Installation.
Once complete, open Eclipse, and then you should have the "JavaHL Slik SVN" option under Window/Preferences/team/SVN
I had the same issue. It turns out that the FAQ is helpful indeed, because:
As of the Subclipse 1.8.x releases, native 64-bit Windows binaries are
included with Subclipse so it includes everything you need. For
earlier releases of Subclipse follow these instructions:
If you are using a 32-bit JVM, then Subclipse should just work. If you
use a 64-bit JVM then you need to provide a 64-bit version of JavaHL.
One such distribution is SlikSVN which you can get here:
http://www.sliksvn.com/en/download
With that package installed, Subclipse should find JavaHL on PATH and
just work.
The key here is the PATH variable. In my case I had another svn client installed that came before in the path. When I changed to C:\Program Files\SlikSvn\bin\ be the first folder in the variable, all worked.
Now I can find "JavaHl Slik SVN" under SVN Interface. The solution was to uninstall Subclipse and to reinstall it. When reinstalling Subclipse, I removed the check on "javahl client adapter (required)" (or similar).
1) Uninstall existing subclipse plugin:
Uninstall subclipse
2) Download these three files:
subclipse-4.3.0.zip
subclipse-javahl-1.12.0.zip
subclipse.javahl.update-1.12.0-SNAPSHOT.zip
3) Install them manually one by one by following theses instructions:
http://www.microfocus.co.jp/manuals/ED23/html/GUID-70E8158C-8618-4228-9495-6AFF4CB7E8DB.html
Ω) If not suitable in your case:
Install this: Subversive-4.0.2.I20160902-1700.zip (works with eclipse 2019-06)
I've just bought a new computer x64 and intalled windows 7 and Eclipse Helios x64. When I tried to install subclipse it didn't work... after a few times trying to install it and getting stuck when eclipse was trying to check the dependences, I did get to install it but it simply didn't work.
When I chenged the perspective to SVN Repository I got an error. Anyway, I downloaded Eclipse Helios x86 and also got stuck on the dependeces checking part. But after a while trying it was installed and now it works.
But the thing is that I want to install eclipse helios x64 since I have a x64 computer.
Did anybody have the same or a similar problem? How did you solve it?
Thanks.
I'm using Eclipse64 with a working SVN plugin.
But I changed the SVN Client interface from "Java HAL" to "SVNKit" which works much better. I installed this module via Yoxos and then switched in the preferences Team > SVN > SVN interface to SVNKit.
If you want to stick to JavaHL way of accessing the repository, you can also install the 64 bits version of JavaHL.
Referenced here - look at the paragraph saying Windows 64-bit. It will redirect you to slik subversion client
You can install the whole client (I could not install only javahl with the custom install)
To make sure it is taken into account, edit your eclipse.ini file and, after the -vmargs line, add -Djava.library.path=C:\programs\slik (or if you already have an item for the jni path, add your own path).