Merciadri Luca wrote: > 1) My question was about the difference between > > == > # update-alternatives --config java > There are 2 alternatives which provide `java'. > > Selection Alternative > ----------------------------------------------- > 1 /usr/bin/gij-4.3 > *+ 2 /usr/lib/jvm/java-gcj/jre/bin/java > == > > and > > == > # update-java-alternatives -l > java-6-sun 63 /usr/lib/jvm/java-6-sun > java-gcj 1042 /usr/lib/jvm/java-gcj > == > > 2) The problem is that my Sun install is under > /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12 (which contains bin/, > lib/, jre/, etc.). Consequently, update-java-alternatives is wrong: > java-6-sun only contains a folder: sun-java6-6-12, which contains > jdk1.6.0_12. This is confirmed by > > == > # update-java-alternatives -s java-6-sun > No alternatives for firefox-3.0-javaplugin.so. > No alternatives for firefox-javaplugin.so. > No alternatives for iceape-javaplugin.so. > No alternatives for iceweasel-javaplugin.so. > No alternatives for midbrowser-javaplugin.so. > No alternatives for mozilla-javaplugin.so. > No alternatives for xulrunner-1.9-javaplugin.so. > No alternatives for xulrunner-javaplugin.so. > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/appletviewer > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/apt > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/extcheck > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/HtmlConverter > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/idlj > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/jarsigner > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/jar > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/javac > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/javadoc > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/javah > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/javap > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/java-rmi.cgi > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/jconsole > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/jdb > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/jhat > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/jinfo > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/jmap > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/jps > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/jrunscript > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/jsadebugd > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/jstack > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/jstatd > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/jstat > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/native2ascii > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/rmic > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/schemagen > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/serialver > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/wsgen > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/wsimport > update-java-alternatives: jdk alternative does not exist: > /usr/lib/jvm/java-6-sun/bin/xjc > No alternatives for ControlPanel. > update-alternatives: Cannot find alternative > `/usr/lib/jvm/java-6-sun/jre/bin/java'. > > No alternatives for java_vm. > No alternatives for javaws. > No alternatives for jcontrol. > No alternatives for jexec. > update-alternatives: Cannot find alternative > `/usr/lib/jvm/java-6-sun/jre/bin/keytool'. > > update-alternatives: Cannot find alternative > `/usr/lib/jvm/java-6-sun/jre/bin/orbd'. > > No alternatives for pack200. > No alternatives for policytool. > update-alternatives: Cannot find alternative > `/usr/lib/jvm/java-6-sun/jre/bin/rmid'. > > update-alternatives: Cannot find alternative > `/usr/lib/jvm/java-6-sun/jre/bin/rmiregistry'. > > No alternatives for servertool. > update-alternatives: Cannot find alternative > `/usr/lib/jvm/java-6-sun/jre/bin/tnameserv'. > > No alternatives for unpack200. > update-java-alternatives: plugin alternative does not exist: > /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so > update-java-alternatives: plugin alternative does not exist: > /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so > update-java-alternatives: plugin alternative does not exist: > /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so > update-java-alternatives: plugin alternative does not exist: > /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so > update-java-alternatives: plugin alternative does not exist: > /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so > update-java-alternatives: plugin alternative does not exist: > /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so > update-java-alternatives: plugin alternative does not exist: > /usr/lib/jvm/java-6 > == > > As a result, > > == > # update-java-alternatives -l > java-6-sun 63 /usr/lib/jvm/java-6-sun/sun-java6-6-12/jdk1.6.0_12 <--- > java-gcj 1042 /usr/lib/jvm/java-gcj > == > > would be the expected output. Where can I tweak this (if possible)? That > might explain why some programs sometimes tell me that they can't found > Java. > > -- > Merciadri Luca > See http://www.student.montefiore.ulg.ac.be/~merciadri/ > I use PGP. If there is an incompatibility problem with your mail > client, please contact me. > > > > >
-- Merciadri Luca See http://www.student.montefiore.ulg.ac.be/~merciadri/ I use PGP. If there is an incompatibility problem with your mail client, please contact me.
signature.asc
Description: OpenPGP digital signature