NonStop Server for Java (NSJ) Programmer's Guide (NSJ 2.1+)
Since the G06 software release, the operating system creates one swap file per processor, but the
default swap file size is 256 MB.
Your system administrator can use the NSKCOM tool to create additional swap files.
Even if the default swap file size is already 256 MB (or more), you might need to create additional
swap files if you plan to run multiple large processes in the same processor, because processes
running in the same processor share the same swap file.
To run the NSKCOM tool, you must log on to the NonStop
Kernel operating system as a super-group
user. Then, from the Guardian TACL prompt, run the NSKCOM tool. From within the NSKCOM
tool, use the help add and help start commands to get more information. For further
information, see the Kernel Managed Swap Facility (KMSF) Manual.
Setting Environment Variables
The following subsection describes the variables that define the environment in which Java operates.
PATH
The environment variable PATH enables Open System Services (OSS) to find the Java executable
files. You must therefore add the absolute path of the java/bin directory to the PATH environment
variable.
To add the absolute path, use this command:
export PATH=/install_dir/java/bin:$PATH
where install_dir is the directory in which NonStop Java was installed. By default, this is
/usr/tandem.
The PATH shell variable must be created in each shell in which you plan to run java or one of its
tools. For this reason, it is a good idea to set the PATH in the .profile file in your home directory
that is executed each time you log on to an OSS shell. See the Open System Services User's Guide for
information on how to set the path in your startup file.
CLASSPATH
If you follow the default installation procedure, you do not need to set the environment variable
CLASSPATH. You must set CLASSPATH only if you move any of the provided .zip or .jar files
or want to load a nondefault library (such as one that you develop).
Documentation provided by Sun Microsystems
(http://java.sun.com/products/jdk/1.2/docs/tooldocs/solaris/classpath.html) describes the use of
CLASSPATH. When applying that documentation to NonStop Java, you should follow the
instructions given for sh and ksh instead of those for csh and tcsh. Instructions for setenv and
unsetenv do not apply to NonStop Java.