java library deps on custom build

Andrew Overholt overholt at redhat.com
Tue Nov 4 22:11:44 UTC 2008


Hi,

(adding fedora-devel-java-list to the discussion)

* Christoph Höger <choeger at cs.tu-berlin.de> [2008-11-04 07:09]:
> 
> I've just compiled scilab on my f9 laptop and tried to run it, but get a
> lot of libraries missing. Ldd says that some java libs (libjava.so,
> libjvm.so) are not found. Those libraries float around
> in /usr/lib/java... Shouldn't that mean that theyre found automagically
> or do I really have to add every single subfolder to LD_LIBRARY_PATH?

I forwarded your question to Tom Fitzsimmons and he said this:

> If an application is using the JNI Invocation API -- I wouldn't be
> surprised if scilab does this -- then the application should dlopen any
> Java DSOs it needs.  It's annoying to find them because they're
> non-standard.  The Fedora packages can just hard-code to
> java-1.6.0-openjdk's locations, though they need to ensure they have the
> proper architecture modifiers in the paths, e.g.:
> /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64.  OpenOffice has some
> helper functions for finding these things.  Maybe these could be rolled
> into a libjpackage.so convenience library for reuse.
> 
> Tom

HTH,

Andrew




More information about the fedora-list mailing list