This guide explains you how to install Oracle Java JDK in CentOS. Before going to install Oracle Java JDK, you need to know your architecture of your CentOS linux.

Install Oracle Java JDK in CentOS linux

Open terminal and type the command “arch”. It will display your architecture of your operating system. For example my host linux architecture is x86_64

Fireup your browser with the following link

http://www.oracle.com/technetwork/java/javase/downloads/index.html

Click Java JDK Download button and you will get a screen as like shown below.

Java JDK, Java JRE, Install Java in linux, Install java, Java rpm, Java Source

Read the license agreement carefully and proceed.

Now select the Java version according to your linux architecture. Here my linux machine architecture is x86_64  ( 64 bit ). So i am going to download Linux x64 jdk-7u5-linux-x64.rpm

After completing the download

cd ~Download;

sudo rpm -ivh jdk-7u5-linux-x64.rpm

It will install Oracle Java JDK in your CentOS linux host.

After the installation is over, you can check the java version by executing the following command

java -version

Uninstall Oralce Java JDK from your CentOS linux

sudo rpm -e jdk

This command will remove java from your CentOS linux.

Related articles


Subscribe Our Free Newsletter

Delivered by FeedBurner. We Respect Your Privacy

Tagged with:
 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>