Total Pageviews

Saturday, September 20, 2014

how to install JDK in 3 easy steps at linux or solaris

how to install JDK easy steps

1. download JDK version from Oracle website depending on your operating system.

2. copy to you machine if unix or solaris change permission on this file using below command

chmod + x jdk1.6<complete name>.sh

On SPARC processors:
chmod +x jre-1_6_0 <update> -solaris-sparcv9.sh 
On x64/EM64T processors:
chmod +x jre-1_6_0 <update> -solaris-x64.sh

make sure when you are downloading the file and transferring to unix machines transfer it in a binary formate(if using Winscp option is there to download it in binary format) otherwise when you run the file you got error of corrupt file or invalid file format error.


if you have file with extension .Z

use following command to extract

gunzip -d filename.tar.z


3. run the executable

either using

./jre-1_6_0 <update> -solaris-sparcv9.sh

or
sh ./jre-1_6_0 <update> -solaris-sparcv9.sh

it will extract all the files are desired location. It is better to extract this binary file in a separate folder.



 

No comments:

Post a Comment