Installing Oracle JDK on RHEL-based Systems
You must configure your operating system to use the Oracle JDK 7 or 8, or OpenJDK 7.
Configure your operating system to use the latest version of Oracle Java SE Runtime Environment 8 or OpenJDK 7.
Note: After installing the JDK, you may need to set JAVA_HOME to your
profile:
For shell or bash: export
JAVA_HOME=path_to_java_home
For csh (C
shell): setenv
JAVA_HOME=path_to_java_home