You can also copy the libsvnjavahl.so file to
eclipse/plugins/org.tigris.subversion.subclipse.core_0.9.30 this worked
for me and IMHO is more convenient than setting
-Djava.library.path=/usr/local/lib or setting LD_LIBRARY_PATH (which may
affect other things).
For anyone struggling with building javahl on Linux as I just did here
are the steps to make it work:
(I'm on Redhat-9, using a kernel 2.6.10, and many updated libraries :)
1. get tarball from
2. > tar xvjf subversion-1.1.4.tar.bz2
3. > cd subversion-1.1.4
4. > ./configure --enable-javahl --with-jdk=$JAVA_HOME
5. > make javahl
6. > sudo make install-javahl
7. > cp /usr/local/lib/libsvnjavahl-1.so
(where .... is wherever your eclipse is installed)
8. Restart eclipse
9. Make sure javahl (jni) is selected as the method to use
Hope that helps.. step 7 is the trick that took me a while to figure out!
>Hermann Voßeler wrote:
>> Bjørn T Johansen wrote:
>>> I have compiled subversion 1.1.4 with --enable-javahl but subclipse
>>> still tells me it
>>> doesn't find any javahl. What am I missing?
>> Points to consider.
>> - did the build indeed create a libsvnjavahl-1.so
>> - was this properly installed (to a "trusted linker dir" od with
>> - Wrapper script to tell eclipse the location of the lib
>> export LD_LIBRARY_PATH=/usr/local/lib
>> exec /opt/eclipse/3.1M6/eclipse -vm $JAVA_HOME/jre/bin/java -data
>> ~/devel/workspc $@ -vmargs -Xmx900M
>That did the trick... It is installed in /usr/local/lib and ldconfig has been run and
>ld.so.conf contains /usr/local/lib, but I needed to provide the env. variable
>LD_LIBRARY_PATH to make eclipse find the javahl libs....
Received on Mon May 23 08:32:36 2005