home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


java

/usr/java/bin/java [options ] classname [args ]

Solaris only. Compile and then run Java bytecode class files. By default, the compiler uses the JIT ("Just In Time") compiler for the current system. args are passed on to the Java program's main method. See also java_g .

Options

-cs , -checksource

Compare the source code file's modification time to that of the compiled class file, and recompile if it is newer.

-classpath path

Use path as the search path for class files, overriding $CLASSPATH . path is a colon-separated list of directories.

-debug

Print a password that must be used for debugging and allow jdb to attach itself to the session. (See jdb .)

-D prop = val

Redefine the value of prop to be val . This option may be used any number of times.

-fullversion

Print full version information.

-help

Print a usage message.

-ms size

Set the initial size of the heap to size , which is in bytes. Append k or m to specify kilobytes or megabytes, respectively. The default heap size is 4MB.

-mx size

Set the maximum size of the heap to size , which is in bytes. Append k or m to specify kilobytes or megabytes, respectively. The default maximum size is 16MB. The value must be greater than 1000 bytes and greater than or equal to the initial heap size.

-noasyncgc

Disable asynchronous garbage collection.

-noclassgc

Disable garbage collection of Java classes.

-noverify

Disable verification.

-oss size

Set the maximum stack size of Java code in a Java thread. Append k or m to specify kilobytes or megabytes, respectively. The default maximum size is 400KB.

-prof [: file ]

java_g only. Enable Java runtime profiling. Place the trace in the named file , if supplied. Otherwise, use ./java.prof .

-ss size

Set the maximum stack size of C code in a Java thread. Append k or m to specify kilobytes or megabytes, respectively. The default maximum size is 128KB.

-t

java_g only. Trace the executed instructions.

-v , -verbose

Print a message to standard output each time a class file is loaded.

-verbosegc

Print a message every time the garbage collector frees memory.

-verify

Run the byte-code verifier on all code.

-verifyremote

Run the verifier on all code loaded via a classloader. This is the default when interpreting.

-version

Display version information for java .


Previous: Reference: jar UNIX in a Nutshell: System V Edition Next: Reference: java_g
Reference: jar Book Index Reference: java_g

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System