You can use this command to check if Java is available in your repository:
yum list | grep java
It should return something like this:
java-1.6.0-openjdk
java-1.6.0-sun
If such a package exists, you can install it using the following command (run it as root):
yum install java-1.6.0-openjdk
source
share