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

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.
/**
* The HelloWorld application implements a java class that
* displays "Hello World!" to the standard output.
*/
class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello World!");
}
}
c.
Alternatively, at the OSS prompt, use the cat command to create the
HelloWorld.java file and type the contents of the HelloWorld program listed
previously.
$cat> HelloWorld.java
type-contents-of-the-file
(Ctrl+y)
d.
2. Set the JREHOME Shell Variable.
If you know that the NonStop Server for Java 4 product is installed on your system in the
standard location, you can omit this step. The standard location for the NonStop Server for
Java 4 installation is:
/usr/tandem/
If you do not know where the NonStop Server for Java 4 product is installed, ask your system
administrator.
The JREHOME shell variable must point to the jre directory of your installation of the
NonStop Server for Java 4 product.
The default value for JREHOME is:
/usr/tandem/java/jre
If the NonStop Server for Java 4 is installed in a different location, for example /test_dir,