Environment Variables

Prior to running any program compiled with HPCJ, you must ensure that you have set your environment variables. Some of the environment variables are mandatory and others are optional, depending on whether you are running executables or running DLLs with the hpjava command. Mandatory environment variables are discussed below. Information about optional environment variables is found in the topic Changing Environment Settings.

To set mandatory environment variables, you can use the setenvhpj command. You can display usage information for this command by issuing the following command in the bin subdirectory of the ibmhpj directory:

setenvhpj

To set the mandatory environment variables in the current shell, issue the following command found in the bin subdirectory of the ibmhpj directory (where path is the absolute path of the ibmhpj directory):

setenvhpj path

Sets the PATH environment variable to include the bin subdirectory of ibmhpj.

setenvhpj path

Sets the PATH and BEGINLIBPATH environment variables to include the bin subdirectory of ibmhpj.

. setenvhpj path

Sets the following environment variables in the AIX Korn shell:

Environment Variables Used by Executables
When you run Java programs that were compiled into executables using HPCJ, there are several environment variables that are used by the HPCJ run-time system:

Environment Variables Used by the hpjava Command
When you run compiled Java applications using the hpjava command, certain environment variables may be used by the HPCJ run-time system. However, in contrast to its use with executables, the IBMHPJ_OPTS environment variable is not used for establishing run-time options. Instead, run-time options are passed as arguments to the hpjava command. Additional information about the hpjava command is found in the topic hpjava Command.

The HPCJ run-time system uses the following environment variables:

 


Java Executables and DLLs


Changing Environment Settings
Running Executables and DLLs


hpjava Command