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


Debian Java FAQ.
Chapter 5 - 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 ] [ 9 ] [ 10 ] [ next ]


Debian Java FAQ.

$Revision: 7831 $, $Date: 2010-12-04 20:17:15 +0000 (Sat, 04 Dec 2010) $

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