If JDK 1.3.1 or JDK 1.4 software has been installed in the default location:
Log in as root by typing su - root.
Set JAVA_HOME to /usr/j2se.
In a C shell environment:
# setenv JAVA_HOME /usr/j2se
In a Bourne or Korn shell environment:
# JAVA_HOME=/usr/j2se # export JAVA_HOME
Add /usr/j2se/bin to your system path.
Place /usr/j2se/bin in your PATH before /usr/bin.
Place /usr/bin in your PATH before /usr/ucb.