NonStop Server for Java 7.0 Programmer's Reference

Using 64–bit java launcher
To launch a 64–bit Java process use the following steps:
1. Set the PATH environment variable to point to the 64–bit launcher using the following command
at the OSS prompt:
$ export PATH=/home/lee/nssjava/jdk170_h70/bin/oss64:$PATH
2. Run the application using the 64–bit launcher:
java <application_classname>
NOTE: If the 64–bit Java launcher is launched with -d64 option, the option is ignored and it
does not performs an exec to create new 64–bit Java process. This behavior differs from the
behavior on other platforms in which an exec is run to create new 64–bit Java process.
32–bit process support
It is possible to launch a 32–bit java process using the 64–bit launcher.
To launch a 32–bit Java process use the following steps:
1. Set the PATH environment variable to point to the 64–bit launcher using the following command
at the OSS prompt:
$ export PATH=/home/lee/nssjava/jdk170_h70/bin/oss64:$PATH
2. Run the 32–bit process using the 64–bit launcher with the command-line option d32.
java -d32 <application_classname>
Launching a 32–bit Java process using d32 option has the following limitations:
32–bit process cannot not be launched as a named process. For more information, see “Java
process name” (page 98).
32–bit process cannot be launched inside the Native Inspect (eInspect) debugger, see
“Debugging Java process” (page 99).
To overcome these limitations, you must launch the 32–bit Java process as described:
$ export PATH=/home/lee/nssjava/jdk170_h70/bin:$PATH
java <application_classname>
NOTE: If the 32–bit Java launcher is launched with d32 option on NonStop Java, the option
is ignored and it does not performs an exec to create a new 32–bit Java process. This behavior
differs from the behavior on other platforms in which an exec is run to create the new 32–bit Java
process.
The following table summarizes the effect of using d32 and d64 options.
Launched Java processCommand-line optionNSJ7 JDK launcher type
32–bit Java process (option ignored)-d3232–bit Launcher
64–bit Java process-d64
32–bit Java processNeither d32 nor d64 is specified.
32–bit Java process-d3264–bit Launcher
64–bit Java process (option ignored)-d64
64–bit Java processNeither d32 nor d64 is specified.
64 Implementation specifics