[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ next ]
By default Java programs shipped with Debian will use the java in PATH. Some of them may respect the JAVA_HOME variable (usually only if upstream supports this) or have command line arguments to select a different java implementation.
Unfortunately not all java implementations work as well as others. So some
times it may be necessary to change the current java and Debian provides an
easy way to change the default java in PATH by using update-java-alternatives
(from the java-common
). Some examples of how to do this are:
# List available java implementations $ update-java-alternatives --list # Use openjdk-6 $ update-java-alternatives --set java-6-openjdk # Use the non-free sun java. $ update-java-alternatives --set java-6-sun # Use the non-free sun java only for the web plugin $ update-java-alternatives --plugin --set java-6-sun
For more information, please read the manpage (or the --help output) of update-java-alternatives. Also please note that update-java-alternatives is a frontend for update-alternatives.
[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ next ]
Debian Java FAQ.
$Revision: 7831 $, $Date: 2013-06-05 21:17:15 +0100 $mailto:twerner@debian.org
mailto:niels@thykier.net
mailto:jfs@debian.org
mailto:sylvestre@debian.org