How to Install Java OpenJDK 8 on CentOS 7

Robotic Process Automation Experts 407-706-0245

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:

[updates-centos-6]
name=CentOS-6 – Updates
baseurl=http://mirror.centos.org/centos/6/updates/$basearch/
gpgcheck=0

If you need to keep Java 7 on the system, set the default version of Java to the new openjdk:

update-alternatives –config java