Using the Java CAPS 6 Installation CLI

Installing the JDK Software and Setting JAVA_HOME

If you do not already havethe JDK software installed or if JAVA_HOME is not set, the Java CAPS installation will not be successful. The following tasks provide the information you need to install JDK software and set JAVA_HOME on UNIX or Windows systems.

The following list provides the Java CAPS JDK requirements by platform.

Solaris

JDK5: At least release 1.5.0_14

JDK6: At least release 1.6.0_03

IBM AIX

JDK5: The latest 1.5 release supported by IBM AIX

Linux (Red Hat and SUSE)

JDK5: At least release 1.5.0_14

JDK6: At least release 1.6.0_03

Macintosh

JDK5: The latest 1.5 release supported by Apple

Microsoft Windows

JDK5: At least release 1.5.0_14

JDK6: At least release 1.6.0_03


Caution – Caution –

It is not recommended to user JDK 1.6.0_13 or 1.6.0_14 with Java CAPS due to issues with several of the wizards used to develop applications. In addition, the installation fails on Windows when using JDK 1.6.0_13 or 1.6.0_14. The Java CAPS Installer does not support JDK release 1.6.0_04 in the 64–bit version on Solaris SPARC or AMD 64–bit environments. The installer also does not support JDK 1.6.0 or later on AIX 5.3.


ProcedureTo Install the JDK Software and Set JAVA_HOME on a UNIX System

  1. Install the JDK software.

    1. Go to http://java.sun.com/javase/downloads/index.jsp.

    2. Select the appropriate JDK software version and click Download.

      The JDK software is installed on your computer, for example, /usr/jdk/jdk1.6.0_02. You can change this location.

  2. Set JAVA_HOME.

    • Korn and bash shells:

      export JAVA_HOME=jdk-install-dir
      
      export PATH=$JAVA_HOME/bin:$PATH
      
    • Bourne shell:

      JAVA_HOME=jdk-install-dir
      
      export JAVA_HOME
      
      PATH=$JAVA_HOME/bin:$PATH
      
      export PATH
      
    • C shell:

      setenv JAVA_HOME jdk-install-dir
      
      setenv PATH $JAVA_HOME/bin:$PATH
      
      export PATH=$JAVA_HOME/bin:$PATH
      
  3. Change the permissions to enable you to run the Java CAPS Installer.

    chmod 755 JavaCAPS.bin
    

ProcedureTo Install the JDK Software and Set JAVA_HOME on a Windows System

  1. Install the JDK software.

    1. Go to http://java.sun.com/javase/downloads/index.jsp.

    2. Select the appropriate JDK software and click Download.

      The JDK software is installed on your computer, for example, at C:\Program Files\Java\jdk1.6.0_02. You can move the JDK software to another location if desired.

  2. To set JAVA_HOME:

    1. Right click My Computer and select Properties.

    2. On the Advanced tab, select Environment Variables, and then edit JAVA_HOME to point to where the JDK software is located, for example, C:\Program Files\Java\jdk1.6.0_02.