[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

/usr/lib/jni not put in java.library.path, sun java 5 and 6



Hello debian java maintainers,

The Java policy says [1]:
"If a virtual machine supports native code, it must include the
directory /usr/lib/jni in its search path for these dynamic
libraries."

openjdk6 was patched to allow looking for JNI libraries in
/usr/lib/jni in bug 517338 [2], and was fixed in openjdk-6
(6b14-1.5~pre1-5). However the bug exists in the sun java JVMs [3,4].

I know that sun java does not allow us to change the binaries, so [3]
was marked as "won't fix." I'm the maintainer of rxtx (librxtx-java)
which is jni, and some users have been complaining about how sun java
cannot see it by default[5]. What is the best way to handle this?
Should it be handled at the sun-java6 level or should I use some use
some script (postinst?) so it can work with sun java?

Thank you.

Regards,
Scott

[1] http://www.debian.org/doc/packaging-manuals/java-policy/c43.html#policy-vm
[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=517338
[3] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=382686
[4] https://bugs.launchpad.net/ubuntu/+source/sun-java6/+bug/325506
[5] https://bugs.launchpad.net/ubuntu/+source/rxtx/+bug/380027


Reply to: