Java Environment
Where possible both PATH and CLASSPATH should be set in your .profile
PATH
PATH
Set your PATH to include the location of your JAVA executable.
Examples
Examples
Oracle
Oracle
export PATH=$PATH:$ORACLE_HOME/jdk/bin
CLASSPATH
CLASSPATH
JAVA needs to know where to find relevant classes (e.g. the JDBC class).
This can be set on the command line (using the -cp argument of java).
Alternatively, and preferably, the CLASSPATH should be set in your environment.
Examples
Examples
Oracle 12.1
Oracle 12.1
export CLASSPATH=$CLASSPATH:$ORACLE_HOME/jdbc/lib/ojdbc6.jar:.:$APXDIR/apex/utilities
Oracle 11.2
Oracle 11.2
export CLASSPATH=$CLASSPATH:$ORACLE_HOME/jdbc/lib/ojdbc5.jar:.::$APXDIR/apex/utilities