Follow the instruction below on how to install JDK on Solaris.
Download JDK and check the file size to ensure that you have downloaded the full, uncorrupted software bundle of JDK.

Download http://java.sun.com/javase/downloads/5u20/jdk

FTP JDK package to remote machine using winscp or filezilla tools
Extract the contents of the compressed tar file:  
root@techgyaan# uncompress jdk-1_5_0_20-solaris-sparc.tar.Z 

On SPARC processors: 
zcat jdk-1_5_0-solaris-sparc.tar.Z | tar -xf - 
On x86/AMD64/EM64T processors: 
zcat jdk-1_5_0-solaris-i586.tar.Z | tar -xf - 

This creates several directories (SUNWj5rt, SUNWj5dev, SUNWj5cfg, SUNWj5man, SUNWj5dmo, and SUNWj5jmp) plus a few files in the current directory.

Become root by running su and entering the super-user password or use sudo permission to install packages.

Run the pkgadd command to install the packages. 
root@techgyaan# sudo pkgadd -d . SUNWj5rt SUNWj5man SUNWj5jmp SUNWj5dev SUNWj5cfg SUNWj5dmo 

Permission is changed as shown below ( Application Permission) 
root@techgyaan# sudo chown -R tgapp:tgsoft /usr/jdk 
drwxr-xr-x 4 tgapp tgsoft 512 Jan 18 12:48 jdk 

Check JDK installed  
root@techgyaan# /usr/java/bin/java -fullversionjava full version "1.5.0_20-b02"

That’s it we have successfully install JDK.

Feedbacks: We appreciate your feedbacks and suggestions about our website bala@techgyaan.org
Check out . Follow @techgyaan