[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Subclipse-users] Problem with javahl libraries

From: Jens Seidel <jensseidel_at_users.sourceforge.net>
Date: Tue, 13 May 2008 16:20:20 +0200

On Tue, May 13, 2008 at 03:27:32PM +0200, Rune V. Sjen wrote:
> testVersion(org.tigris.subversion.javahl.tests.BasicTests)java.lang.UnsatisfiedLinkError:
> no svnjavahl in java.library.path
>
> The javahl libs are located in the folder in the java.library.path
> I dont get it...

Happened to me as well. Don't remember the solution, I just rebuilt
subversion properly ...
IIRC javahl requires that subversion is already properly *installed*.

Here are my notes for compiling/installing Subversion 1.5:

svn co http://svn.collab.net/repos/svn/branches/1.5.x
cd 1.5.x
svn co http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x apr
cd apr && ./buildconf && cd -
svn co http://svn.apache.org/repos/asf/apr/apr-util/branches/0.9.x apr-util
cd apr-util && ./buildconf && cd -

./autogen.sh
export JAVA_HOME=/home/jens/local/jdk1.6.0_01/
./configure CXXFLAGS="-O0 -g" --enable-maintainer-mode --enable-debug --enable-javahl --with-jdk=$JAVA_HOME --with-jikes=$JAVA_HOME/bin/javac --prefix=/home/jens/local/subversion1.5
make
make javahl
make install
export LD_LIBRARY_PATH=/home/jens/local/subversion1.5/lib:$LD_LIBRARY_PATH
make install-javahl
 
Ah, now I see:
This new javahl doesn't work with stable 1.2.4 version of Subclipse. It
bogusly assumes Subversion 1.3.0 or newer is not in use.
         
Subversion 1.5 and Subclipse from
http://subclipse.tigris.org/update_1.4.x works well.

See also: http://merge-tracking.open.collab.net/

> And if I run ldconfig -v, the library in /usr/lib is also listed
>
> and I am not able to run java applications that use javahl bindings, even if
> the library path is set correctly
> I also tried setting LD_LIBRARY_PATH before invoking the applications.

Are all used libraries in libsvnjavahl-1.so found? Start ldd on it to
verify!

Jens

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subclipse.tigris.org
For additional commands, e-mail: users-help_at_subclipse.tigris.org
Received on 2008-05-13 16:20:56 CEST

This is an archived mail posted to the Subclipse Users mailing list.