NonStop Server for Java 5.0 Programmer's Reference

/home/lee/jdk150
1. Set the PATH environment variable by using the following command at the OSS prompt:
$export PATH=/home/lee/jdk150/java/bin:$PATH
2. Confirm that the path is set correctly by typing the whence command:
$whence java
/home/lee/jdk150/java/bin/java
3. Determine the version of the Java virtual machine (JVM) by typing the vproc command,
which displays the product versions of the java binary file and any products bound into the
java binary. For the version of the NonStop Server for Java 5 installation, look for the product
number T2766 following a line that begins Version Procedure: The displayed version
identifier changes with every update of NonStop Server for Java 5.
The version identifier has the following form:
T2766Hnn
A vproc example is:
Version procedure: T2766H50_23SEP2005_jdk150...
4. To set the JREHOME shell variable, type the following command at the OSS prompt:
$export JREHOME=/home/lee/jdk150/java/jre
5. To confirm that your JREHOME shell variable is set correctly, type the following echo
command at the OSS prompt:
$echo $JREHOME
/home/lee/jdk150/java/jre
Tutorial: Running a Simple Program,
HelloWorld
After the NonStop Server for Java 5 is installed, follow these steps to create and run the
HelloWorld program.
The default OSS prompt is the dollar sign ($). The commands show the prompt, so do not type
it. In text showing computer input and output, the input you type is shown in bold.