NonStop Server for Java Programmer's Reference (NSJ 4.2+)
Specifying Tasks Provided by the Makefile●
Variables in the Makefile●
Examples of Using make●
For additional information about this Makefile, see
install_dir/java/install/README, which might have a last-minute update about the
topic.
Specifying Tasks Provided by the Makefile
The Makefile defines several rules, where each rule 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.
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 are found in the
directories listed in the CUSTLIB_DIRS variable. For example, the make operation fails with
an error message that indicates the presence of two libraries with the same name (h/mylib)
are present in the following situation:
CUSTLIB_DIRS is set to:
CUSTLIB_DIRS = /usr/tandem/java_public_lib_jdk142 /h/mylib
1.
libjni.a exists in /h/mylib and in
/usr/tandem/java_public_lib_jdk142
2.
This limitation applies whether the two archive files contain the same object code or different
code.
For .lib files, you can have two files with the same name in different directories as long as
the files do not contain the same code. All object files in an archive file are extracted from the
archive file and linked in explicitly into the java executable. Therefore, your archive file
should not contain code that is not needed, to keep the java executable from being
unnecessarily large.
make baseversion