I usually download the rpm or source from Java.com and install it manually but this time around it just wouldn’t work. So this is the alternative, read: supported way, of installing Java JDK 1.8.

Issue yum list *jdk* to get a list of what’s available:

To install, issue: yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel

To verify installation, issue: java -version

This is what you should see to signal a successful install.