openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #08492
[Bug 850433] Re: java -jamvm fails to run; couldn't open libjava.so
Launchpad has imported 1 comments from the remote bug at
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1155.
If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.
------------------------------------------------------------------------
On 2012-09-04T09:13:37+00:00 Xerxes Rånby wrote:
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/850433
building icedtea with --enable-jamvm == work
building icedtea with --with-additional-vms=jamvm == triggers this bug
# testcase that fail:
# ../icedtea7-2.3/configure --with-additional-vms=jamvm
./j2sdk-image-additional-vms-jamvm/bin/java -jamvm -version
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.
# testcase that work:
# ../icedtea7-2.3/configure --enable-jamvm
./j2sdk-image-enable-jamvm/bin/java -version
java version "1.7.0_07"
IcedTea7 Runtime Environment (2.3.2+re7117fcb33ed) (Ubuntu build 1.7.0_07-b30)
JamVM (build 1.6.0-devel, inline-threaded interpreter with stack-caching)
Reply at: https://bugs.launchpad.net/icedtea/+bug/850433/comments/8
** Changed in: icedtea
Status: Unknown => Confirmed
** Changed in: icedtea
Importance: Unknown => Medium
--
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:
Incomplete
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