Install the JDK from the disk using the pkgadd command.
Type the command pkgadd -d <DiskMountDir>/disk1/jdk_dir.
Press Return to install all of the packages. The JDK packages are installed in the /usr/j2se directory.
Reset the JAVA_HOME environment variable to /usr/j2se.
In a C shell environment, type:
# setenv JAVA_HOME /usr/j2se |
In a Bourne or Korn shell environment, type:
# JAVA_HOME=/usr/j2se # export JAVA_HOME |
Set the JAVA_HOME environment variable in your .login or .cshrc file.