How To: Install Java In Fedora
This tutorial explains how to install Oracle Java in Fedora so that you can run Java applets in your web browser.
The process is quite simple because Java has been released in an open source license.
You can install Java in Fedora by installing the OpenJDK package.
On Fedora 9+ the OpenJDK 6 runtime and development packages are installed by default during any large-media install, such as from the Fedora DVD.
However, if you have installed Fedora from a live image, then do the following to install OpenJDK in Fedora.
su -c 'yum install java-1.6.0-openjdk'
It is a 27 MB download.
Alternately, to install with the graphical package manager, follow ‘System > Administration > Add/Remove Software‘ and use search to find the package(s) to install.
[ Source ]
To run Java applets in Firefox
In order to view Java applets in Firefox web browser, you should also install the openJDK plugin.
su -c 'yum install java-1.6.0-openjdk-plugin'
Now restart your web browser (Firefox) for the changes to take effect.
To test if Java is indeed working in Firefox, visit the following web page. You should see a message – “Your Java is working”.
These steps of installing Java in Fedora was successfully tested in Fedora 15.