Centos Installations and Commands

To Install Java in CentOS :

Download java from the any website, jdk-6u30-linux-x64.bin file and continue the following steps,

a) move the downloaded file to /opt

>mv jdk-6u30-linux-x64.bin /opt

b) change the ownership of the downloaded file.

>chmod 766 jdk-6u30-linux-x64.bin

c) extract the downloaded file,

>./jdk-6u30-linux-x64.bin

d) to install, follow the below command

>alternatives –install /usr/bin/java /opt/jdk1.6/bin/java 1

e) to select the versions of the java installed in the system and choose the version needed

> alternatives –config java

About these ads
This entry was posted in centos cmds-to-install and tagged , , . Bookmark the permalink.

One Response to Centos Installations and Commands

  1. Balasundaram says:

    Very Good one… well written article….

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s