Many times we faced issues with installing java using rpm or other source. After that i found a better wayto install java from Sun site. Using below steps i have installed java successfully many times without facing any issues. We can also install multiple version of java easily if required
Read article Steps to install JAVA on CentOS 5/6 or RHEL 5/6 to get easy java installation on linux.