Appendix A. Installing JDK

Table of Contents

A.1. Sun Solaris
A.2. IBM AIX
A.3. HP-UX
A.4. Linux

This appendix describes how to install and use the Java SE Development Kit (JDK) on each platform.

Note

This appendix is a brief summary of the JDK Installation Guide, which is available online.

Updates for Solaris SPARC and x86 are available under "Solaris OS Patch" at the following site.

http://www.oracle.com/technetwork/java/javase/downloads/index.html

Check whether the required updates have been applied before using the JDK.

To use the JDK, update the PATH environment variable from the user shell and add the Java execution file path. For example, execute the following command if the JDK is installed in the '/usr/j2se' directory.

(csh) setenv PATH ”/usr/j2se/bin:$PATH”
(sh or ksh) PATH=”/usr/j2se/bin:$PATH”

Alternatively, specify the entire execution file path, such as '/usr/j2se/bin/javac', '/usr/j2se/bin/java', etc.

Other environment variables such as JDK_HOME, JAVA_HOME, and CLASSPATH are not required for using the JDK. However, they may be needed by other applications.

Download the JDK from the following site.

http://www.ibm.com/developerworks/java/jdk/aix/service.html

System patches are required to install the JDK.

If additional packages are needed during installation, download and install them from the FTP site.

ftp://service.software.ibm.com

Connect to the FTP site and use anonymous/e-mail address to login. Use 'ls -1' to display the file list.

The required files are available in the following paths.

  • AIX update path

    /aix/fixes/<OS version>
  • Other update file

    /aix/fixes/v4/other

Download the HP-UX JDK for the Java™ 2 Platform Standard Edition (J2SE) from the '/tmp' directory of the following site.

https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXJAVAHOME

System patches are required to install this software. For information about the patches, go to the previous site. For installation instructions and information about commands, refer to the documents at the following site.

https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXJAVAINFOLIB

JDK 6 is available at the following site.

http://www.oracle.com/technetwork/java/javase/downloads/index.html