Manual Pages for UNIX Darwin command on man java_home
MyWebUniversity

Manual Pages for UNIX Darwin command on man java_home

javahome(1) javahome(1)

NAME

javahome - return a value for $JAVAHOME

SYNOPSIS

//uussrr//lliibbeexxeecc//jjaavvaahhoommee [options]

DESCRIPTION

The jjaavvaahhoommee command returns a path suitable for setting the JAVAHOME environment variable. It determines this path from the user's enabled and preferred JVMs in the Java Preferences application. Additional constraints may be provided to filter the list of JVMs available. By default, if no constraints match the available list of JVMs, the default order is used. The path is printed to standard output. OOPPTTIIOONNSS

-vv or --vveerrssiioonn vveerrssiioonn

Filters the returned JVMs by the major platform version in "JVMVersion" form. Example versions: "1.5+", or "1.6*".

-aa or --aarrcchh aarrcchhiitteeccttuurree

Filters the returned JVMs by the architecture they support. Example architectures: "i386", "x8664", or "ppc".

-dd or --ddaattaammooddeell ddaattaammooddeell

Filters the returned JVMs capable of running in 32 or 64-bit

mode. Supported datamodels: "-d32" and "-d64". Specifying a

datamodel is synonymous with specifying a particular architec-

ture.

-tt or --ttaasskk ttaasskk

Selects from the list of JVMs which can run a specific task. The order of each of these lists is set by the Java Preferences

application. Supported tasks: "Applets", "WebStart", "Bun-

dledApp", "JNI" and "CommandLine". The default task is "Command-

Line".

-FF or --ffaaiillffaasstt

Immediately fails when filters return no JVMs; does not print

out the path to the default $JAVAHOME.

--eexxeecc ccoommmmaanndd ......

Executes the command at $JAVAHOME/bin/ and passes the

remaining arguments. Any arguments to select which $JAVAHOME to

use must precede the -exec option.

-XX or --xxmmll

Prints the list of selected JVMs and associated properties as an XML plist to stdout.

-VV or --vveerrbboossee

Prints the matching list of JVMs and architectures to stderr.

-hh or --hheellpp

Brief usage information. UUSSAAGGEE

//uussrr//lliibbeexxeecc//jjaavvaahhoommee helps users set a $JAVAHOME in their login rc

files, or provides a way for command-line Java tools to use the most

appropriate JVM which can satisfy a minimum version or architecture

requirement. The -exec argument can invoke tools in the selected

$JAVAHOME/bin directory, which is useful for starting Java command-

line tools from launchd plists without hardcoding the full path to the

Java command-line tool.

Usage for bash-style shells:

$ export JAVAHOME=`/usr/libexec/javahome`

Usage for csh-style shells:

% setenv JAVAHOME `/usr/libexec/javahome`

04 August 2010 javahome(1)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™