1. Install Java 8 (if you want to stick with openjdk developer version use this):
su -c "yum install java-1.8.0-openjdk-devel"
2. Run this command to view versions on your machine:
sudo update-alternatives --config java
3. Choose the number next to the new Java version you installed.
4. Run java -version to verify the correct version is the version referenced by the system.