Sun Management Center 4.0 Installation and Configuration Guide

ProcedureTo Install the Required JDK Version

  1. 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.

  2. 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
      

      Tip –

      Set the JAVA_HOME environment variable in your .login or .cshrc file.