NonStop Server for Java 7.0 Tools Reference Pages
6 java: Java Application Launcher
The java tool launches a Java application by starting a Java run time environment, loading a
specified class, and invoking that class' main method. For more information on java tool, see the
Oracle Java documentation for java.
Synopsis
java [ options ] classname [ arguments ]
java [ options ] -jar file.jar [ arguments ]
classname
Name of the class to be invoked.
file.jar
Name of the jar file to be invoked. Used only with -jar.
arguments
Arguments passed to the main function.
Deviations from Standard Java Options
-client
Selects the Java HotSpot Client virtual machine (VM).
NOTE: The -client option is not valid with NonStop Server for Java 7.0.
If -client option is used, then the following error message is displayed:
Unrecognized option: -client
Error: Could not create the Java virtual machine.
Error: A fatal exception has occurred. Program will exit.
–d64
After 64–bit NSJ7 is installed on the system, the following standard Java command is used to
launch the 64–bit NSJ7 from 32–bit NSJ7:
$ /usr/tandem/nssjava/jdk170_h70/bin/java -d64 <java application>
-Xeprof
The —Xeprof option generates profile data for HPjmeter. The —Xeprof option controls profiling
of Java applications running on JRE for NonStop operating system for the Java 2 Platform and
collects method clock and CPU times, method call count, and call graph. (For more information
on HPjmeter, see www.hp.com/go/hpjmeter.)
NOTE: Zero preparation profiling is started from the command line by sending a signal to the
JVM to start eprof. Engaging zero preparation profiling might have a short term impact on
application performance as the JVM adjusts to the demands of performing dynamic measurements.
Synopsis
To profile your application, use:
java -Xeprof:options ApplicationClassName
where
options
18 java: Java Application Launcher










