JAVA-CONFIG(1)

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 and java packages.

In addition, it is used by Portage as a common interface to querying properties about the various JVMs.

OPTIONS

--select-vm=VM
    Use this vm instead of the active vm when returning information.

-c, --javac
    Show full path to currently selected Java compiler.

-j, --jar
    Show full path to currently selected jar command.

-o, -O, --java-home, --jdk-home, --jre-home
    Print JAVA_HOME of currently selected JVM.

-t, --tools
    Print path to tools.jar

-v, --java-version
    Query current JVM for version.

-p [pkg1[-SLOT],pkg2[-SLOT],...] --classpath[=package1,package2,...]
    Calculate classpath for a package. If a package is installed in different slots you can also specify the slot to get the specific classpath informations.

-g VAR, --get-env=VAR
    Print an environment variable from the active VM.

-e command, --exec=command
    Run the specified JDK/JRE utility of the active vm, such as keytool , rmic and others.

-i PACKAGE(S), --library=PACKAGE(S)
    Print java library paths for these packages. Used for example in wrapper scripts like this: -Djava.library.path=$(java-config -i swt-3). Follows the same pkg[-SLOT] convention as for example --classpath.

-l, --list-available-packages
    List available Java packages. Used for selection by --classpath

-L, --list-available-vms
    Lists available JVMs.

-f, --show-active-vm
    Show the JVM that's currently active, as set by eselect java-vm.

-n, --nocolor
    Turn off all colors.

-P <vm-id>, --print=<vm-id>
    Print the environment information for the specified virtual machine.

-d, --with-dependencies
    Include package dependencies in --classpath and --library calls.

-r, --runtime
    Print the runtime classpath.

--package=PACKAGE(S)
    Retrieve a value from a packages package.env file, value is specified by --query.

-q QUERY, --query=QUERY
    Value to retieve from packages package.env file, specified by --package.

--get-virtual-providers=PACKAGE(S)
    Return a list of packages that provide a virtual.

MAINTAINER
java@gentoo.org

AUTHORS
Karl Trygve Kalleberg <karltk@gentoo.org>
Adrian Almenar <strider@gentoo.org>
Jason Mobarak <aether@gentoo.org>

BUGS
Report any bugs you find to https://bugs.gentoo.org/.

SEE ALSO
env-update(5)

The /usr/bin/java-config script.