UPDATE April 2019: Oracle now requires you to create an Oracle account to download packages. You will need to make an account on their site, login, download the RPM, upload it to your server and then run the rpm install command. We would host it to make your life easier, but it's not worth being sued by a mega-corporation.

UPDATE April 2022: If you are using a more recent OS version you cam install many OpenJDK versions via dnf/yum, such as Java 17, by running dnf install java-17-openjdk -y or can get direct rpm links to some rpm packages from the Pkgs.org website, just use their search feature. https://pkgs.org/download/java-1.8.0-openjdk

Go to the following Oracle website to download the latest Java JDK:
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Click accept beside the version you want, make sure it is the ".rpm" extension file. Then you will need to create or login to an Oracle account (free) to download.

Once you've downloaded the Java RPM, upload it to your server and navigate to the directory it was uploaded, then run "rpm -Uvh jdk*.rpm"

Was this answer helpful? 40 Users Found This Useful (739 Votes)