Java JRE and Development Tools Check for existing Java version if needed. One an existing system you may need to remove an existing version of Java. Here's an example of removing Java 1.7.
yum remove java*yum remove java-1.7.0-openjdk*
Only if needed, choose your version of Java. Here's commands to install either version 1.8 or 11.
yum -y install java-1.8.0-openjdk-devel##ORyum -y install java-11-openjdk-devel
to get Java along with Maven and other developer command line tools
yum -y install http://pbase-foundation.com/pbase-repo.rpmyum -y install pbase-java8-dev-tools##ORyum -y install pbase-java11-dev-tools