SQL/MX Guide to Stored Procedures in Java (G06.24+, H06.03+)

Getting Started
HP NonStop SQL/MX Guide to Stored Procedures in Java523727-004
2-19
Setting the JREHOME Environment Variable
Precedence of the JREHOME Environment Variable
The UDR_JAVA_OPTIONS setting takes precedence over the JREHOME environment
variable. See Setting JREHOME by Using UDR_JAVA_OPTIONS on page 2-17.
Setting JREHOME in the OSS Environment
To set the JREHOME environment variable in the OSS environment, enter this
command at an OSS prompt:
The java-installation-directory is the path of the installation directory of the
NonStop Server for Java.
For example, this command sets the JREHOME location for SPJs invoked in the
current OSS session:
export JREHOME=/usr/myjavadir/jre
For more information about the export command, see the Open System Services Shell
and Utilities Reference Manual.
Setting JREHOME in the Guardian Environment
To set the JREHOME environment variable in the Guardian environment, enter this
PARAM command at a Guardian prompt:
The java-installation-directory is the path of the installation directory of the
NonStop Server for Java.
For example, this command sets the JREHOME location for SPJs invoked from
embedded SQL programs in C, C++, or COBOL that will run in the current Guardian
session:
PARAM JREHOME /usr/myjavadir/jre
For more information about the PARAM command, see the TACL Reference Manual.
export JREHOME=java-installation-directory/jre
PARAM JREHOME java-installation-directory/jre