[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ next ]


Debian Java FAQ.
Chapter 3 - Managing Java (for users and administrators)


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: 10393 $, $Date: 2014-05-18 09:28:03 +0000 (Sun, 18 May 2014) $

Torsten Werner twerner@debian.org
Niels Thykier niels@thykier.net
Javier Fernández-Sanguino Peña jfs@debian.org
Sylvestre Ledru sylvestre@debian.org