Suppose you want to play Minecraft, in order to do that you need to have Java installed. You don’t have to worry about versions since Java is backwards compatible, meaning the latest version of Java is capable of running software that was built in an earlier version. In this “how to” we are going to install OpenJDK which is basically a free and open source variant of Java
Fire up Terminal and log in as root:
yum install -y java-1.7.0-openjdk
Mind you if you need Java to be working in your browser too, you need to install the IcedTea plug in. You install this by typing the following command in Terminal (make sure that your are logged in as root!):
yum install -y icedtea-web
To check if Java installation was succesful, go this site. You will see this screen:
Press on the “Verify Java version” button.
A yellow pop-up screen will appear asking for your permission to run.