This article will show you how to install the Java Runtime Environment (JRE) from Sun Microsystem which is required by some applications like the JXplorer LDAP Browser and the Fedora Directory Server Administration tools.
Installing the Java Runtime Environment (JRE)

1. Download the Java software for Linux from Sun Microsystem. Choose the RPM format.
3. In the Properties window, click the Permissions tab and check Allow executing file as program. Click Close when you are done.
4. Double click the file to execute it and click Run in Terminal. Press Spacebar until you reach the end of the text. Type in yes and press Enter to agree to the license terms and proceed with the installation.

5. Check your Java installation by typing in the command below. Note down the version.
java -version


6. If the version being used is not the one you installed, type in the command below to make it so.
ln -sf /usr/java/default/bin/java /usr/bin/java
The above would be the case if you install the Fedora Directory Server which pulls in on an old version of Java during installation.
Configuring Firefox
cd /usr/lib/mozilla/plugins ln -sf /usr/java/default/plugin/i386/ns7/libjavaplugin_oji.so .
Visit the forum to ask for help or to give a comment.
***
Posted on 5/25/2008 and last updated on 11/6/2009
Filed under Uncategorized



March 10th, 2009 at 11:39 pm
The latest version of Java doesn’t work well with Fedora Directory Server. The version that works is java-1.7.0-icedtea or java-1.6.0-openjdk. To get them on Centos 5.2, first install epel repository. rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm. Then install one of the above versions using yum. Next, you also use yum to install one of the plugins for mozilla, java-1.7.0-icedtea-plugin or java-1.6.0-openjdk-plugin.