/usr/lib/jni not put in java.library.path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-6 (Debian) |
Fix Released
|
Unknown
|
|||
sun-java6 (Debian) |
Fix Released
|
Unknown
|
|||
sun-java6 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The standard Debian rules about Java introduce /usr/lib/jni as the location of the JNI libraries.
This path is not present in the default Sun JRE library path.
The only way to put /usr/lib/jni in java.library.path is to explicitly use the -D command line option or to set LD_LIBRARY_PATH environment variable.
Because the sun-java6 package is based on binaries, could it be possible to put a wrapping script which is setting the LD_LIBRARY_PATH according to the Debian rules? See attachment for an example. This script could be link as an alternative in place of all the JRE's binaries.
The OpenJREs have been requested to add /usr/lib/jni directory inside the default library path on Debian-like systems.
Best regards,
Stéphane
Changed in openjdk-6 (Debian): | |
importance: | Unknown → Undecided |
status: | Unknown → New |
status: | New → Fix Released |
Changed in openjdk-6 (Debian): | |
importance: | Undecided → Unknown |
status: | Fix Released → Unknown |
Changed in sun-java6 (Debian): | |
status: | Unknown → Won't Fix |
Changed in openjdk-6 (Debian): | |
status: | Unknown → Fix Released |
Changed in sun-java6 (Debian): | |
status: | Won't Fix → Fix Released |
The same happens for openjdk-6-jre.
This caused eclipse and the subclipse package not to find the installed javahl (libsvn-java package).
I think for user convinience this default location /usr/lib/jni should be set as a default search path for
all java runtimes (don't now how to do this properly thow).
Best regards,
Oliver