On Wed, Dec 11, 2013 at 9:51 AM, Mathieu Malaterre <[email protected]> wrote: > On Wed, Dec 11, 2013 at 1:40 PM, Felipe Sateler <[email protected]> wrote: >> On Tue, Dec 10, 2013 at 4:47 PM, Niels Thykier <[email protected]> wrote: >>> On 2013-12-10 16:03, Mathieu Malaterre wrote: >>>> [CC me please] >>>> >>>> I am currently starring at: >>>> >>>> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731778 >>>> >>>> Apparently java.library.path is not automatically set for this user. >>>> Does anyone know a way to dump the list of java.library.path at >>>> runtime ? >>>> >>>> Thanks for advices, >>>> >>>> >>> >>> Hi, >>> >>> Not sure how to do it (or if it is exposed at all). >>> >>> What java is used in this case? I know the user has default-jre >>> installed, but honestly I wouldn't be surprised if it turned out that >>> the JVM was an non-free oracle without a patch to include the Debian >>> specific JNI path. >> >> >> Nope, no no-free java. >> >> % java -version >> java version "1.7.0_25" >> OpenJDK Runtime Environment (IcedTea 2.3.12) (7u25-2.3.12-4) >> OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) > > So in summary: > > As per: > http://bugs.debian.org/731778#5 > You need to run explicitely: > > java -Djava.library.path=/usr/lib/x86_64-linux-gnu/jni -jar > /usr/bin/dicomscope > > because you only have the following path inspected (as per > http://bugs.debian.org/731778#15): > > % java GetSystemProperty java.library.path > /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib > > There is pretty much nothing I can do from dicomscope point of view. > I'll reassign to openjdk people. I do not see any typo anywhere, it > should just work: > > $ java -jar /usr/bin/dicomscope
The plot thickens. The above command works. However, typing 'dicomscope' doesn't. /u/b/dicomscope is a symlink to the jar file, not a script, so I guess binfmt is at play. It seems the binfmt support is failing at some point. % readlink -f /usr/share/binfmts/jar /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jar.binfmt % cat /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jar.binfmt package openjdk-7 interpreter /usr/bin/jexec magic PK\x03\x04 But I can't get to run jexec directly: % readlink -f /usr/bin/jexec /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jexec % jexec can't locate java: No such file or directory -- Saludos, Felipe Sateler -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/caafdzj8et7ct3bavevhta1h7mdctragbvf3nynd26ea8-t2...@mail.gmail.com

