Installing Oracle Java in Red Hat Enterprise Linux

Solution 1:

Oracle Java requires you to be an Oracle customer with a subscription. You will need to contact Oracle sales to figure that out.

Assuming you have a license for it, maybe a repo exists you can use on RHEL. If not, you could repackage their Java as an RPM and create your own repo for private use.

Red Hat packages OpenJDK with a support life cycle. This has passed the same test suite, it is Java. OpenJDK packages are included in RHEL and rebuilds: yum list *openjdk*