NAME
java-config - The Java configuration tool for Gentoo
SYNOPSIS
java-config
[options]
DESCRIPTION
java-config
Is used to query/set properties of your system's Java environment. It can be
used to list available VMs, java packages, set system default JVM and set user
default JVM.
In addition, it is used by Portage as a common interface to querying
properties about the various JVMs.
OPTIONS
- -c --javac
-
Show full path to currently selected Java compiler.
-j --jar-
Show full path to currently selected
jar
command.
- -O --jdk-home
-
Show path to currently selected JDK.
-o --jre-home-
Show path to currently selected JRE.
-v --java-version-
Query current JVM for version.
-p [pkg1,pkg2,...] --classpath[=package1,package2,...]-
Calculate classpath for a package.
-e filename --exec=filename-
Figure full path to one of the JDK/JRE utilities, such as
keytool
,
rmic
and others.
- -l --list-available-packages
-
List available Java packages. Used for selection by
--classpath
,
--set-system-classpath
and
--set-user-classpath
- -L --list-available-vms
-
Lists available JVMs. Used with
--set-system-vm
and
--set-user-vm
- -S <vm-id> --set-system-vm=<vm-id>
-
Sets the system-wide default JVM.
-s <vm-id> --set-user-vm=<vm-id>-
Sets the user-specific JVM by putting all necessary env vars into
$HOME/.gentoo/java-env .
- -A <pkg1>,<pkg2>,... --set-system-classpath=<package1>,<package2>,...
-
Sets the system-wide default CLASSPATH.
-a <pkg1>,<pkg2>,... --set-user-classpath=<package1>,<package2>,...-
Sets the user-specific CLASSPATH by putting all necessary env vars into
$HOME/.gentoo/java-env-classpath
(sourced from $HOME/.gentoo/java-env).
- -X --clean-system-classpath
-
Cleans the system-wide default classpath, leaving only vm needed jars
on it.
-x --clean-user-classpath-
Cleans the user specific classpath that was specified by
--set-user-classpath
by deleting
$HOME/.gentoo/java-env-classpath .
- -n --nocolor
-
Turn off all colors.
-P <vm-id> --print=<vm-id>-
Print the environment information for the specified virtual machine.
NOTES
You can get the <vm-id> that is used with
--set-system-vm=<vm-id>
and
--set-user-vm=<vm-id>
in the output of
java-config --list-available-vms
inside the brackets. Ex. [blackdown-jdk-1.4.1] and you can use this to
set your default Java Virtual Machine.
AUTHORS
Karl Trygve Kalleberg <
karltk@gentoo.org>
Adrian Almenar <
strider@gentoo.org>
Jason Mobarak <
aether@gentoo.org>
BUGS
It cannot be used to set default browser plugin yet.
SEE ALSO
env-update(5)
- The /usr/bin/java-config script.
-
-
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- OPTIONS
-
- NOTES
-
- AUTHORS
-
- BUGS
-
- SEE ALSO
-