[Bug 294753] Re: ImageJ chooses wrong java home
Peter Husen
peter at husen.dk
Thu Sep 24 19:31:32 UTC 2009
No it's not fixed. The line that determines the java home is still the
same:
JAVA_HOME=$(/usr/sbin/update-java-alternatives -l | head -1 | cut -d'
' -f 3)
i.e. still the first line from update-java-alternatives -l, which is not
necessarily the configured alternative. I just installed 1.43b-1 by
installing ia32-sun-java6-bin, and it still fails in the way I
originally described (with the message "Running a 64-bit JVM is not
supported on this platform."), since it (wrongly) chooses the 32-bit jvm
and tries to use it in 64-bit mode.
$ update-alternatives --display java
java - status is manual.
link currently points to /usr/lib/jvm/java-6-sun/jre/bin/java
/usr/lib/jvm/java-gcj/jre/bin/java - priority 1042
slave java.1.gz: /usr/lib/jvm/java-gcj/man/man1/java.1.gz
/usr/bin/gij-4.2 - priority 42
slave java.1.gz: /usr/share/man/man1/gij-4.2.1.gz
/usr/lib/jvm/java-6-sun/jre/bin/java - priority 63
slave java.1.gz: /usr/lib/jvm/java-6-sun/jre/man/man1/java.1.gz
/usr/lib/jvm/java-6-openjdk/jre/bin/java - priority 1061
slave java.1.gz: /usr/lib/jvm/java-6-openjdk/jre/man/man1/java.1.gz
/usr/bin/gij-4.3 - priority 43
slave java.1.gz: /usr/share/man/man1/gij-4.3.1.gz
/usr/lib/jvm/ia32-java-6-sun/jre/bin/java - priority 63
slave java.1.gz: /usr/lib/jvm/ia32-java-6-sun/jre/man/man1/java.1.gz
Current `best' version is /usr/lib/jvm/java-6-openjdk/jre/bin/java.
$ update-java-alternatives -l
ia32-java-6-sun 63 /usr/lib/jvm/ia32-java-6-sun
java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
java-6-sun 63 /usr/lib/jvm/java-6-sun
java-gcj 1042 /usr/lib/jvm/java-gcj
Notice how the first item in the latter output does not match the
currently configured java alternative.
--
ImageJ chooses wrong java home
https://bugs.launchpad.net/bugs/294753
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list