How to Install Java OpenJDK 8 on CentOS 7
The CentOS 7 repositories do not have java-1.8.0-openjdk packages yet. However, these have been released for CentOS 6.
For our development workstations running CentOS 7, we have successfully installed the CentOS 6 openjdk packages.
As root, create a new file in /etc/yum.repos.d called centos6.repo:
name=CentOS-6 – Updates
If you need to keep Java 7 on the system, set the default version of Java to the new openjdk:
update-alternatives –config java