openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #08502
[Bug 850433]
libjava.so gets linked differently depending on the build
ldd j2sdk-image-additional-vms-jamvm/jre/lib/i386/libjava.so
libjvm.so => not found
libverify.so => /media/2d0c92b2-31e4-49ad-b101-e1584b930ca6/diff-enable-additional/j2sdk-image-additional-vms-jamvm/jre/lib/i386/libverify.so (0x006b0000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0x00c94000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x00a78000)
/lib/ld-linux.so.2 (0x008c2000)
libjvm.so => not found
ldd j2sdk-image-enable-jamvm/jre/lib/i386/libjava.so
libjvm.so.0 => not found
libverify.so => /media/2d0c92b2-31e4-49ad-b101-e1584b930ca6/diff-enable-additional/j2sdk-image-enable-jamvm/jre/lib/i386/libverify.so (0x00418000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0x00110000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x00cb7000)
/lib/ld-linux.so.2 (0x00a46000)
libjvm.so.0 => not found
--
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-7 in Ubuntu.
https://bugs.launchpad.net/bugs/850433
Title:
java -jamvm fails to run; couldn't open libjava.so
Status in Iced Tea:
Confirmed
Status in “openjdk-7” package in Ubuntu:
In Progress
Status in “openjdk-7” source package in Precise:
In Progress
Status in “openjdk-7” source package in Quantal:
In Progress
Bug description:
tested on armel oneiric using testcase:
/usr/lib/jvm/java-7-openjdk-armel/bin/java -jamvm -verbose:jni -version
output:
xranby@ac100-oneiric:~$ /usr/lib/jvm/java-7-openjdk-armel/bin/java -jamvm -verbose:jni -version
[Failed to open library /usr/lib/jvm/java-7-openjdk-armel/jre/lib/arm/libjava.so: libjvm.so: cannot open shared object file: No such file or directory]
Error initialising natives: couldn't open libjava.so: use -verbose:jni for more information
Error initialising VM (initialiseNatives)
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
workaround:
cd /usr/lib/jvm/java-7-openjdk-armel/jre/lib/arm/
sudo ln -s jamvm/libjvm.so .
expected output:
xranby@ac100-oneiric:/usr/lib/jvm/java-7-openjdk-armel/jre/lib/arm$ /usr/lib/jvm/java-7-openjdk-armel/bin/java -jamvm -verbose:jni -version
[Opened native library /usr/lib/jvm/java-7-openjdk-armel/jre/lib/arm/libjava.so]
[Dynamic-linking native method java.lang.Object.registerNatives ... JNI]
...
[Dynamic-linking native method sun.misc.Unsafe.compareAndSwapObject ... internal]
OpenJDK Runtime Environment (IcedTea7 2.0pre) (7~b147-2.0~pre4-1)
JamVM (build 1.6.0-devel, inline-threaded interpreter with stack-caching)
To manage notifications about this bug go to:
https://bugs.launchpad.net/icedtea/+bug/850433/+subscriptions
References