How to install and uninstall Java JDK in CentOS linux
Share the post "How to install and uninstall Java JDK in CentOS linux"
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.

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.
Share the post "How to install and uninstall Java JDK in CentOS linux"
Related articles
- Easy method to install Skype in CentOS 6.3, RHEL – 6.3
- How to install and configure PHPMyAdmin from source code in CentOS / RHEL / Fedora linux
- How to backup and restore mysql database
- XBMC – Free Media Player for Linux, OSX and Windows
- Glances – Monitoring tool for Linux and BSD
- How to mount iso image in linux
- How to install OpenVPN on various linux distro
- How to disable selinux
- Change selinux to permissive
- How to check selinux status
Advertisement
Follow us on Twitter
Follow us on GooglePlus
Find us on Facebook
Recent Posts
- Easy method to install Skype in CentOS 6.3, RHEL – 6.3
- Easy method to recover linux root password
- Easy method to install KDE in ubuntu 12.04
- How to disable selinux
- Change selinux to permissive
- How to check selinux status
- Get website details
- How to install nginx in ubuntu
- How to install nginx in RHEL 5
- How to install nginx in RHEL 6
- How to install nginx in centos 5
- Get linux OS details – Kernel version, distribution version, name, architecture, codename, release
- Service start, stop, restart – nginx in centos
- How to change nginx port number
- How to install nginx on centos 6
- Rsync command with ssh port number
- File creation date and time in linux
- How to install Java in ubuntu linux
- How to install Oracle Java JDK in ubuntu
- How to set password for website
- Plesk – MySQL admin login – password
- How to install and configure PHPMyAdmin from source code in CentOS / RHEL / Fedora linux
- How to find out mysql uptime
- How to backup and restore mysql database
- How to recover mysql root password
- How to connect Mobile Broadband in the ubuntu linux
- Easy method to update bootloader in linux
- Webcam software for linux
- Check memory usage in linux
- How to find out CPU utilization in linux
