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

The rules in the Makefile for tasks that you might want to perform are:
make
Invokes the default "install" rule that relinks a new java executable file. The Makefile searches
the directories listed in the variable CUSTLIB_DIRS for custom libraries to link in. The JDBC
drivers for NonStop SQL are linked in as follows:
If the JDBC Driver for SQL/MX is installed, this driver is linked in only if the
NonStop SQL/MX product is installed on the system.
❍ 
If the JDBC Driver for SQL/MP and the NonStop SQL/MP product are installed on the
system, the make rule SQL compiles the java executable.
❍ 
Make fails with an error if two archive libraries with the same name occur to be linked in. For
example, if libjni.a existed in /h/mylib and in /usr/tandem/java_public_lib
the make fails with an error message that indicates two libraries have the same name. This
limitation does not apply to .lib files.
make baseversion
Relinks a new java file without any custom libraries or optional libraries. The new java
executable file is not SQL compiled. This rule produces a java executable that matches what is
released on the product CD.
make javasqlcomp
SQL compiles the java executable if the NonStop SQL/MP product is installed on the system.
make clean
Removes temporary files created during the make process. Temporary files are always
removed at the start and the end of the make process. You may want to run this step explicitly
if a prior run of make failed to complete successfully.
Variables in the Makefile
The top part of the Makefile defines variables whose values you might need to change before using
the Makefile. You can change make command variables either by editing the Makefile or, for a less
permanent change, by setting the value of the variables on the make command line to override the
value in the Makefile.
INSTALL_DIR
Indicates where NonStop Server for Java 4 is installed. Its value is set to the default installation
location for the current release.
Note: /usr/tandem/java is a symbolic link and always points to the latest
installation of NonStop Server for Java. Using the symbolic directory in this
variable means must change this value when future versions of NonStop Server
for Java are installed.
If NonStop Server for Java 4 is installed in a directory other than the default
location, you should edit the Makefile to set this variable to the directory where
NonStop Server for Java 4 is installed.










