- Mac Incompatible Javahl Library Loaded. Subversion 1.11.x Required
- Incompatible Javahl Library Loaded. Subversion 1.7.x Required
Requirements
A couple of general requirements to be aware of:
- Your JVM can only load a native library that is the same architecture. So if you are on a 64-bit OS with the 64-bit Subversion native libraries installed, you cannot use a 32-bit JVM
- Subclipse includes the Java portion of JavaHL, so you must have the same major.minor version of the libraries installed. Otherwise you will receive an error that it could not load the library due to a version mismatch. In current Subclipse master, the requirement is Subversion 1.9.x.
- 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.
- I'm having a problem with Subclipse and the JavaHL library. Subclipse it gives the error: Incompatible JavaHL library loaded. 1.8.x or later required. I am using Ubuntu desktop 12.04 32 bit.
Installation
Subclipse / subclipse. Sign up Why GitHub? Is there a good reason to choose JavaHL over SVNKit on Mac? #114 opened Nov 23, 2019 by saoj. Various issues with MacOS (Eclipse, subversion 1.13.0, merges not working). Incompatible JavaHL library loaded. Subversion 1.10.x required #109 opened Aug 14, 2019.
The best way to install Subversion and JavaHL on Linux is to use the package from your distro, For example, on Debian based distros like Ubuntu or Mint you would just do this:
And on RPM based distros like Fedora or CentOS you would do:
The main problem you might run into is that some distros include an older version of the SVN client then you desire. The current Subclipse version requires SVN 1.9.x, so if your distro includes 1.7 or 1.8 you need to get a newer version.
WANdisco provides up to date package for many Linux distributions. These packages are designed to replace/upgrade the ones that come with your distribution. https://www.wandisco.com/subversion/download
Mac Incompatible Javahl Library Loaded. Subversion 1.11.x Required
CollabNet provides packages for RPM based distributions. http://www.collab.net/downloads/subversion
The CollabNet package has a different RPM name and installs into a private folder, so it does not replace the one from your distribution. Instead, you edit your PATH to use the version installed.
Configuration
This varies based on the version of your distribution and the package. Some of them install the JavaHL library to a location where the JVM automatically finds it, and others do not. The JVM searches for JNI libraries based on the value of
java.library.path
. If you install the package and Eclipse is still giving you an error message, you can configure Eclipse so that it finds the library.To do this, find the folder where the eclipse executable is installed. There should be a file named eclipse.ini. Open this file in a text editor and look for a line that says
-vmargs
On the lines that follow will be arguments to pass to the JVM on startup. On the line immediately after, add the following:The path to the library, needs to the folder where libsvnjavahl is installed by your package. For example, on Ubuntu you would need:
Incompatible Javahl Library Loaded. Subversion 1.7.x Required
And if you use the CollabNet RPM then you need: