NonStop Server for Java Programmer's Reference (NSJ 4.2+)

2. Confirm that the path is set correctly by typing the whence command:
$whence java
/home/lee/jdk142/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 4 installation, look for the product
number, T2766, following a line that begins Version Procedure: The displayed version
changes with every update of NonStop Server for Java 4. The following listing is an example.
$vproc /home/lee/jdk142/java/bin/java
VPROC - T9617G03 - (28 FEB 2003) SYSTEM \BEAN Date 21 MAY 2004,
17:10:39
Copyright 2003 Hewlett-Packard Development Company, L.P.
/home/lee/jdk142/java/bin/java
GMT Binder timestamp: 21MAY2004 20:29:46
....
Version procedure: T2766V20_10DEC2004_jdk142_...
....
Native Mode: runnable file
4. To set the JREHOME shell variable, type the following command at the OSS prompt:
$export JREHOME=/home/lee/jdk142/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/jdk142/java/jre
Tutorial: Running a Simple Program,
HelloWorld
After the NonStop Server for Java 4 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.