This is a straightforward tutorial on how to install Sun Java Runtime Environment (JRE) in Fedora 11.
1. Go to the site below and grab the latest version of Java Runtime Environment.
http://java.sun.com/javase/downloads/index.jsp
2. After downloading the file, make the file executable
chmod ug+x jre-6u16-linux-i586-rpm.bin
and install.
./jre-6u16-linux-i586-rpm.bin
3. After the installation, you need to configure your system to use the newly installed Java Runtime Environment.
alternatives --install /usr/bin/java java /usr/java/default/bin/java 5
alternatives --config java
During the installation of your Fedora 11 CD or DVD, the OpenJDK 6 development and runtime packages are installed by default.
There are 3 programs which provide 'java'.
Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.6.0-openjdk/bin/java
2 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
3 /usr/java/default/bin/java
Enter to keep the current selection[+], or type selection number: 3
Enter "3" to change it to your newly installed Java Runtime Environment.
Verify your version of java using this command: