1.4. Configuring Your Environment

This section describes how to configure your computing environment to develop and run SQLJ programs. Three environment variables must be set: ORACLE_HOME, PATH, and CLASSPATH. The ORACLE_HOME environment variable specifies the directory in which the Oracle software is installed. The PATH environment variable specifies a list of directories that contain the command-line utilities. The CLASSPATH environment variable specifies a list of Java class libraries and directories used by the various Java utilities.

1.4.1. The ORACLE_HOME Environment Variable

The ORACLE_HOME environment variable should be set to the directory where the Oracle software is installed. Many Oracle applications and utilities depend on the ORACLE_HOME environment variable to point the way to the Oracle software directory.

To set your ORACLE_HOME environment variable using Windows NT 4.0, use the System Properties dialog in the Control Panel. Figure 1-1 shows the ORACLE_HOME environment variable in the System Properties dialog.

Figure 1-1. Setting the ORACLE_HOME environment variable in Windows NT 4.0

To set your ORACLE_HOME environment variable using the Bash shell with Linux, add lines similar to the following to your .bash_profile file:

ORACLE_HOME=
installation_directory
export ORACLE_HOME

where installation_directory is the directory in which the Oracle software is ...

Get Java Programming with Oracle SQLJ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.