H-Series Application Migration Guide (H06.03+)
Independent Product Migration Tasks
H-Series Application Migration Guide—429855-006
A-2
Migrating NonStop Server for Java 4 Applications
NonStop Server for Java 4 on TNS/E systems has the same Java features and
functions as version 2, NonStop Server for Java 4 on TNS/R systems. Differences
between NonStop Server for Java 4 on TNS/R systems and TNS/E systems are:
•
The NonStop Server for Java 4 installation directory on TNS/E systems is
/usr/tandem/nssjava/jdk142_h10.
•
NonStop Server for Java 4 on TNS/E systems uses dynamic-link libraries (DLLs):
°
When using Java Native Interface (JNI) code, use DLLs instead of static
libraries. A public library directory does not apply to Java applications on
TNS/E systems. For more information, see the JNI discussion in the NonStop
Server for Java Programmer’s Reference.
°
DLLs have specific naming requirements. For more information, see the
NonStop Server for Java Programmer’s Reference.
°
The -Dcompaq.liblist option is not supported on TNS/E systems.
°
The customer Makefile does not exist in NonStop Server for Java 4 on TNS/E
systems because DLL support eliminates the need to bind user native code
into the Java executable.
•
The _RLD_LIB_PATH environment variable specifies the library path for user DLLs
and is used only on TNS/E systems. For more information, see the discussion of
_RLD_LIB_PATH in the NonStop Server for Java Programmer’s Reference.
•
The invocation API uses the Java Virtual Machine (JVM) as a DLL; therefore, if you
use this API, you do not need to statically link Java into your programs.
•
Change the JNI_OnLoad function call as described in the NonStop Server for Java
Programmer’s Reference.
•
PC-based Visual Inspect is the preferred debugger for TNS/E applications. You
can also use the Native Inspect command line symbolic debugging tool for
debugging native code ($system.SYSnn.INSPECT command).
•
NonStop Server for Java 4 on TNS/E systems is built with the C++ version neutral
flag, which means that you can use C++ code compiled with either the VERSION2
or VERSION3 C++ dialect.
•
The default heap and stack sizes have changed on TNS/E systems:
°
The TNS/E default stack size is 512 KB. The minimum stack size is 64 KB.
°
The TNS/E initial heap size is 18.25 MB. The default maximum heap size is 64
MB.
•
On TNS/E systems, NonStop Server for Java 4 systems does not use its own
special version of dlfcn.h. Use the file that exists in the system’s include directory
(/usr/include).