NonStop Server for Java 5.1 Programmer's Reference
/**
* 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!");
}
}
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 5.1 product is installed on your system in the standard
location (/usr/tandem), or if you are using NSJ SPR T2766H51^ABO or later, you can omit this
step. The standard location for the NonStop Server for Java 5.1 installation is:
/usr/tandem/
If you do not know where the NonStop Server for Java 5.1 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 5.1 product.
The default value for JREHOME is:
/usr/tandem/java/jre
If the NonStop Server for Java 5.1 is installed in a different location, for example /test_dir, type the
following command at the OSS prompt set the JREHOME shell variable:
$export JREHOME=/test_dir/java/jre
3. Set the PATH Environment Variable.
Add the directory where the NonStop Server for Java 5.1 executable file is installed to your PATH
environment variable.
For the standard installation, type the following command at the OSS prompt: