Linux Commands Examples

A great documentation place for Linux commands

update-java-alternatives

update alternatives for jre/sdk installations

Synopsis

update-java-alternatives [--jre] [--plugin] [-t|--test|-v|--verbose]
-l|--list [<jname>]
-s|--set <jname>
-a|--auto
-h|-?|--help


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !

description

update-java-alternatives updates all alternatives belonging to one runtime or development kit for the Java language. A package does provide these information of it’s alternatives in /usr/lib/jvm/.<jname>.jinfo.

options

-l|--list [<jname>]

List all installed packages (or just <jname>) providing information to set a bunch of java alternatives. Verbose output shows each alternative provided by the packages.

-a|--auto

Switch all alternatives of registered jre/sdk installations to automatic mode.

-s|--set <jname>

Set all alternatives of the registered jre/sdk installation to the program path provided by the <jname> installation.

--jre

Limit the actions to alternatives belong to a runtime environment, not a development kit.

--jre-headless

Limit the actions to alternatives belong to the headless part of a runtime environment.

--plugin

Limit the actions to alternatives providing browser plugins.

-h|--help

Display a help message.

-t|--test

Don’t actually do anything, just say what would be done. The implementation status of this option is the same as for update-alternatives (not implemented).

-v|--verbose

Verbose output.

files

/usr/lib/jvm/.*.jinfo

A text file describing a jre/sdk installation. Consists of some variables of the form <var>=<value> and a list of alternatives of the form jre|jdk <name> <path>.


author

update-java-alternatives and this manual page was written by Matthias Klose <doko[:at:]ubuntu[:dot:]com>.

How can this site be more helpful to YOU ?


give  feedback