NonStop Server for Java 5.1 Programmer's Reference

2. Confirm that the path is set correctly by typing the whence command:
$whence java
/home/lee/jdk151/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.1 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.1.
The version identifier has the following form:
T2766Hnn
A vproc example is:
Version procedure: T2766H50_23SEP2005_jdk151...
4. To set the JREHOME shell variable, type the following command at the OSS prompt:
$export JREHOME=/home/lee/jdk151/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/jdk151/java/jre
Tutorial: Running a Simple Program,
HelloWorld
After the NonStop Server for Java 5.1 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.
1. Create a Java Source File.
Perform either steps a, b, and c or step d only.
Using your favorite editor, create a file that contains the following source code.a.
Name the file HelloWorld.java.b.
Place the file in the OSS file space by using FTP.
c.