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

Re[2]: Compiling subversion with javahl support?

From: Jim Morris <morris_at_wolfman.com>
Date: 2005-05-23 04:11:59 CEST

I hadn't thought of that, but I still prefer my method, as the other two
can affect other projects, whereas my way is very specific to subclipse.

To try to answer your other question, a better question is why java
cannot find the libsvnjavahl.so when it is in the normal place for Linux
to look for so's. The reason the libsvnjavahl.so can find its
dependencies is because it uses the standard Linux load library
mechanism, which looks wherever ldconfig tells it to look, usually /lib
and /usr/lib, and occasionally /usr/local/lb. This is configured in
/etc/ld.so.conf.

However if you put the libsvnjavahl.so in any of those places Java will not
find it unless you explicitly set java.library.path which is kind of
inconvenient.

I cannot find anything that documents Eclipses behavior of being able to
load JNI's when put in the plugins directory, but I'm sure it is
somewhere.

On Sun, 22 May 2005 20:48:45 -0400
Mark Phippard <MarkP@softlanding.com> wrote:

MarkP> > You can also copy the libsvnjavahl.so file to
MarkP> > eclipse/plugins/org.tigris.subversion.subclipse.core_0.9.30 this worked
MarkP> > for me and IMHO is more convenient than setting
MarkP> > -Djava.library.path=/usr/local/lib or setting LD_LIBRARY_PATH (which may
MarkP> > affect other things).
MarkP>
MarkP> The problem with your approach is that every time you install a new release
MarkP> of Subclipse, which has been about every 4-6 weeks, you have to remember to
MarkP> do this step.
MarkP>
MarkP> I have another question for someone who understands this stuff (library
MarkP> loading). Why does the above method work? I understand why it can now
MarkP> find the JavaHL library, but when it loads it, why is the JavaHL library
MarkP> then able to find and load all of its dependencies? On Windows, if you
MarkP> only copied the main library and not all of the dependencies, it would fail
MarkP> unless those dependencies were on the PATH.
MarkP>
MarkP> Just curious.
MarkP>
MarkP> Mark
MarkP>
MarkP>
MarkP> _____________________________________________________________________________
MarkP> Scanned for SoftLanding Systems, Inc. by IBM Email Security Management Services powered by MessageLabs.
MarkP> _____________________________________________________________________________
MarkP>
MarkP> ---------------------------------------------------------------------
MarkP> To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
MarkP> For additional commands, e-mail: users-help@subclipse.tigris.org
MarkP>

--
Jim Morris morris@wolfman.com
Received on Mon May 23 12:11:59 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.