FaqSvnJavahl

How to use Subversion support with JavaHL

JavaHL is the name of the Java language binding provided by the Subversion project. For more information see: What is JavaHL?.

Minimum required versions of Subversion and JavaHL:

  • NetBeans 6.5: requires Subversion & JavaHL version 1.5+
  • NetBeans 6.7 and later: requires Subversion & JavaHL version 1.6+

On Windows

Either download the bundled Subversion client from the NetBeans Update Center or download and install the Subversion client ≥ 1.5 (NetBeans 6.7 requires version ≥ 1.6) from here. After restarting NetBeans, the Subversion module should automatically recognize that JavaHL is available on your machine and use it instead of the command line client.

Mac OS

Download and install Subversion client ≥ 1.5 (NetBeans 6.7 requires version ≥ 1.6) from here. After restarting NetBeans, the Subversion module should automatically recognize that JavaHL is available on your machine and use it instead of the command line client.

Linux and other Unix(-like) systems

If the (operating system dependent) packaging/update system (RPM packages, Debian packages, etc.) provides both Subversion client and JavaHL library, use the packages system to install both. Otherwise the JavaHL library must be compiled, together with the Subversion client – see the installation instructions below.

Compilation from source code:

To compile Subversion together with the JavaHL library, do the following steps

1. Get the Subversion sources from http://subversion.tigris.org/ (one of the links ".tar.bz2", ".tar.gz", ".zip").

2. Unpack the sources to some directory (e.g. /usr/local/src).

3. Install libraries that are needed for compilation of Subversion and JavaHL, i.e.:

autoconf 2.58+
libtool 1.4+
C and C++ compiler
libapr 1.0+
zlib
neon 0.25-0.25 -or- serf 0.1.2+
openssl
sqlite 3.4.0+
   It should be possible to install all these libraries via the packaging system.

4. Configure the compilation process:

./configure --enable-javahl --with-jdk=/path/to/jdk
   It may happen that the configure script complaints about missing libraries and/or tools.
   But if all of the above libraries and tools are installed, it should run without any issues.

5. Compile Subversion and JavaHL:

make
make javahl

6. Install Subversion and JavaHL to the system:

sudo make install
sudo make install-javahl
sudo ldconfig
   or
su root
make install
make install-javahl
/sbin/ldconfig

7. Restart NetBeans.

If Subversion and JavaHL were successfully installed, NetBeans should write something like this to the log file (main menu: View > IDE Log):

INFO [Org.netbeans.modules.subversion.client.SvnClientFactory]: running on javahl
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo