Subscribe via RSS Feed

How to install Java Runtime Environment on CentOS 6.2

After messing around on my fresh installed CentOS 6.2, now I can get the latest version of Java Runtime Environment 7 running on my CentOS 6.2. Also, the Mozilla Firefox or Google Chrome are now equipped with Java. Lovely…

This short tutorial will show you how to get Java installed and working with Firefox and Google Chrome. Check this out.

Step 1. Download and install the latest version Java Runtime Environment (JRE). This is the Java SE version 7 for Linux system.

You should then select the java binary match with your current system. In my example here, we are using CentOS 6.2 32 bit, so we select the following file: jre-7u3-linux-i586.rpm

Step 2. Install Java SE 7 rpm package

rpm –ivh jre-7u3-linux-i586.rpm

Now check if java correctly installed. Type the following command:

java –version

It should returned something like this:

[root@localhost Downloads]# java -version
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.4) (rhel-1.41.1.10.4.el6-i386)
OpenJDK Client VM (build 20.0-b11, mixed mode

The result will be vary depends on the java version we installed.

Step 3. Make java works with Mozilla Firefox and Google Chrome

Run the following wizard via Terminal

alternatives –config java         (it uses double dashes)

cd /usr/lib/mozilla/plugins

ln –fs /usr/java/latest/lib/i386/libnpjp2.so

Now open Firefox and type “about:plugins” (without quotes) to check if Java works on Firefox. You should see something like this

java-on-centos-6-2

Related articles we have:

Incoming Search:

  • centos 6 3 firefox java
  • centos 6 2 firefox java plugin
  • firefox java centos 6 3
  • centos 6 3 java firefox
  • install java firefox centos 6 3

Tags: , , , ,

Category: CentOS, Tips and Tutorial

About the Author: Basically I am a GIS officer in an mineral exploration company and I love to try any new software, linux distro, gis software. I want to share all the things that I know on my blogs.

Leave a Reply




If you want a picture to show with your comment, go get a Gravatar.