
CentOS comes with OpenJava JRE installed. However that doesn't provide the required libraries to run Java from browsers (read: applets). Here are the steps to install and enable applets / Java plugin in Firefox browser on CentOS 5.
Note: The instructions may be applicable to other versions of CentOS, Fedora, others Linux distros too. However it has only been tested on CentOS 5.3.