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

You can also reset the symbolic link yourself by using the ln command with the -s option. For
example, if you install a PVU based on version 1.3 of the JDK, but still want version 1.4.1 to be the
one referred to by /usr/tandem/java, you can reset the symbolic link instead of unpaxing
version 1.4.1 again:
ln -s /usr/tandem/nssjava/jdk141_v10 /usr/tandem/java
The symbolic link is always put in the directory where NonStop Server for Java 4 is installed, so if
you use the -s option to specify an alternative installation directory during the unpaxing step, the
symbolic link is install_dir/java instead of /usr/tandem/java. For example, if
nssjava/jdk141_v10 is installed in /h/myjava, the symbolic link is /h/myjava/java.
The installation directory is symbolically linked to /h/myjava/nssjava/jdk141_v10.
Binding Libraries into the Java VM
To establish an environment that permits the use of servlets and similar clients with native code, you
must bind the appropriate libraries into the Java VM. To bind the libraries, use
/usr/tandem/java/install/Makefile. By default, this Makefile relinks java with
any libraries in the directory /usr/tandem/java_public_lib. For information about this
Makefile, see /usr/tandem/java/install/README.
Except for native library files associated directly with NonStop Server for Java 4, HP recommends
that native library files not be installed in the NonStop Server for Java 4 directory tree. Any
Java-based products supplying such libraries should also supply an installation script that will run the
"customer makefile" specifying the location of the native libraries for the CUSTLIB_DIRS variable.
See the README file in /usr/tandem/java/install for more information about the customer Makefile.
Using the Makefile to Link in Native Libraries
The Makefile in the install-dir/java/install directory provides these functions:
Allows for the periodic submission of new library files that need to be bound into the java
executable.
Can be used to SQL compile the java executable so that JDBC Driver for MP can be used to
access SQL/MP tables.
For the submission of new libraries, you can provide libraries in either of these formats:
An archive of object files in a file ending in .a
A relinkable collection of object files in a file ending in .lib
Specifying Tasks Provided by the Makefile
The Makefile defines several rules, where each rules performs a different task. A rule appears as a
command line argument to make, for example:
make javasqlcomp
Runs the javasqlcomp rule that SQL compiles the java executable if the
NonStop SQL/MP product is installed on the system.