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

CUSTLIB_DIRS
Contains a space-separated list of absolute directory names in which to search for custom
library files to link into the java executable. Custom library files can be archive library files
(*.a) or relinkable library files (*.lib). By default, the make operation looks for custom
libraries in /usr/tandem/java_public_lib. Custom native library files should not be
put directly under the INSTALL_DIR directory structure to avoid having to copy these files to
a new NonStop Server for Java 4 installation when you install a new RVU.
Setting the CUSTLIB_DIRS variable allows you to place your custom JNI libraries in
directories of your own choosing. Follow these guideline in setting this variable:
If you override this variable on the command line and you want to set its value to more
than one directory, you must enclose the list of space-separated directory names in
quotes.
❍ 
You can include wildcard characters in the directory names. See Examples of Using
make for an example of how to override Makefile variables on the command line.
❍ 
TARGET_JAVA_DIR
Specifies the directory name where the newly built java executable is put. Typically, you use
this variable so that you can build a version of java for testing without overwriting the official
version of NonStop Server for Java 4. The directory name can be absolute or relative. This
variable does not apply when relinking the base version of java with the make
baseversion command.
When you change this variable setting, you should typically override its value by setting the
variable on the make command line rather than editing the Makefile. See Examples of Using
make for the syntax of how to override the value on the command line.
Various utility locations
The make operation uses various utilities, such as cp, sed, and so forth. The locations of these
utilities are specified in a series of variables in the Makefile rather than relying on the user's
PATH environment variable. If you find the utilities are installed in a different location on your
system, you should consider changing the value of these variables in the Makefile.
To make a permanent change, edit the Makefile and save the changes.❍ 
To make a one time change, override its value by setting the variable on the make
command line.
❍ 
Examples of Using make
Example 1 shows how to override TARGET_JAVA_DIR and CUSTLIB_DIRS while running make
from the install directory. The commands to build java in the directory /h/testdir using all the
libraries in /h/testdir are:
cd /usr/tandem/nssjava/jdk141_v40/
install make TARGET_JAVA_DIR=/h/testdir CUSTLIB_DIRS=/h/testdir
Example 2 shows how to accomplish the operations performed in Example 1, but runs make while in
a user directory.










