NonStop Server for Java Programmer's Reference (NSJ 4.2+)

Creating Larger or Additional Swap Files
HP recommends a total swap files size of 512 MB (1024 Extents, 255 MaxExtents) for each
processor that runs the Java virtual machine (JVM). If you plan to run multiple large processes in
the same processor, you might need to create additional swap files because processes running in the
same processor share the same swap file.
Your system administrator can use the NSKCOM tool to create additional swap files.
To add swap files, you must log on to your 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. As a convenience so that you do not have to fully qualify the Java executable, 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 the NonStop Server for Java 4 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.
Class Path
The class search path (more commonly, class path) is the path that the Java runtime environment
searches for classes and other resource files. The class path tells the SDK tools and applications
where to find third-party and user-defined classes. The class path can be set either by using the
-classpath option when calling an SDK tool (such as java or javac) or by setting the
CLASSPATH environment variable.
The preferred method is using the -classpath option because you can set that option
individually for each application without affecting other applications and without other applications
modifying the option's value.