Software >> OS >> Unix >> Solaris >> Java >> How to install JDK using self extracting binary

1. Download the self-extracting binary and check the file size to ensure that you have downloaded the full, uncorrupted software bundle.
 

You can download to any directory you choose; it does not have to be the directory where you want to install the JDK.

Before you download the file, notice its byte size provided on the download page on the web site. Once the download has completed, compare that file size to the size of the downloaded file to make sure they are equal.

2. Make sure that execute permissions are set on the self-extracting binary:

On SPARC processors:
chmod +x jdk-1_5_0-solaris-sparc.sh

On x86/AMD64/EM64T processors:
chmod +x jdk-1_5_0-solaris-i586.sh

3. Change directory to the location where you would like the files to be installed.

The next step installs the JDK into the current directory.

4. Run the self-extracting binary.

Execute the downloaded file with the path prepended to it. For example, if the file is in the current directory, prepend it with "./" (necessary if "." is not in the PATH environment variable):

On SPARC processors:
./jdk-1_5_0-solaris-sparc.sh

On x86/AMD64/EM64T processors:
./jdk-1_5_0-solaris-i586.sh

The binary code license is displayed, and you are prompted to agree to its terms.

The JDK files are installed in a directory called jdk1.5.0 in the current directory. Follow this link to see its directory structure. The JDK documentation is a separate download

References

[1]  http://java.sun.com/j2se/1.5.0/install-solaris.html