NonStop Server for Java (NSJ) Programmer's Guide (NSJ 2.1+)
Demonstration Programs
The /demo directory contains subdirectories, each of which contains a demo program and a
README file that documents how the demo should be used. Demos provided include the following:
Demonstration
Program
Illustrates
awt
The exception a program receives if it attempts to use an
AWT method to visually display something (Because of
the nonvisual nature of Compaq servers, NonStop Java
does not support AWT.)
invocation_api
How to properly build an executable that can create its own
Java Virtual Machine (JVM)
javahjni
How to create a native library and statically link it with a
Java executable
jdbc
How to use JDBC to access SQL/MP tables (present only if
you install the JDBC Driver for SQL/MP)
jdbcMx
How to use JDBC to access SQL/MX tables (present only
if you install the JDBC Driver for NonStop SQL/MX)
jdbcTrace
How to use the JDBC trace facility
Many of the demos require you to edit some files before the demos can be run, as described in the
accompanying README file.
Symbolic Links
Using symbolic linking, which is enabled by default, Java and related files (java, javac, and so
on) are symbolically linked to the wrappers that have the same names, which set the environment and
invoke the related executable objects or shells.
If symbolic linking is not enabled, physical files are created instead of symbolic links.
To use symbolic linking, the OSS catalogs must have been upgraded to release version 2, which
supports symbolic links.
Wrappers
The /usr/tandem/java/bin directory contains wrappers, which are files that have the same
names as executable files in another subdirectory. These wrappers are shell scripts that invoke the
actual executable files.