Name
java
Synopsis
java [options
]classname
[args
] java [options
] -jarjarfile
[args
]
Load and execute Java bytecode class files. By default,
java uses the “Just In Time” (
JIT) compiler for the current system. args
are passed on to the Java program’s main()
method.
Options
-agentlib:
lib
[=
options
]Load the native agent library lib, optionally passing options to it.
-agentpath:
path
[=
options
]Use path to load a native agent library by full path.
-
-client
Use the Java HotSpot Client VM.
-cp
path
,-classpath
path
Use the colon-separated list of directories in path instead of $CLASSPATH to find class files. It is usually a good idea to have the current directory (“.”) on the search path.
-d32
,-d64
Specify a 32- or 64-bit environment, respectively. On 64-bit systems, 64 bits is the default. Otherwise, the 32-bit environment is used.
-dsa
,-disablesystemassertions
Disable assertions in all system classes.
-
-D
prop
=
val
Redefine the value of prop to be val. This option may be used any number of times.
-esa
,-enablesystemassertions
Enable assertions in all system classes.
-
-jar
jarfile
Invoke the
main()
method of the class listed in theMain-Class
manifest header in jarfile.-javaagent:
jarpath
[=
options
]Use jarpath to load a Java agent.
-
-server
Use the Java HotSpot Server VM.
-
-showversion
Display version information and continue running.
-verbose
[:
item
]With item, display information about that item. Possible values for item are
class
, to print a message to standard output each time a class file is loaded;
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.