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 various platforms.

Note

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

A.1. Sun Solaris

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

http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.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, users can run the binary file by specifying the full path (/usr/j2se/bin/javac or /usr/j2se/bin/java).

To execute JDK, no environment variables such as JDK_HOME, JAVA_HOME, or CLASSPATH are required. But if an issues arises regarding these variables, make sure that the existing settings are not in conflict.

A.2. IBM AIX

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

A.3. HP-UX

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

A.4. Linux

JDK 7 is available at the following site.

http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html