Why not use the one that Redhat provides? Which is the preferred way of installation, judging from the OpenJDK install page.

yum info java-1.8.0-openjdk

Name        : java-1.8.0-openjdk 
Arch        : x86_64
Epoch       : 1
Version     : 1.8.0.181
Release     : 3.b13.el7_5
Size        : 501 k
From repo   : rhel-7-server-rpms

Answering the comments:

Version locking can be achieved with yum-plugin-versionlock or rather by providing a local mirror (using Foreman and its 'Content Views' feature).

Downloading a RPM to a box can be done from a properly registered host with yumdownloader (see the yum-utils package).

Should you nonetheless be keen on installing your own version, creating a RPM is recommended. Take a look on how the Redhat/CentOS folk do it or use one of the other approaches as inspiration.

Answer from fuero on serverfault.com
🌐
OpenJDK
openjdk.org › install
OpenJDK: Download and install
If you want to develop Java programs then please install the openjdk-8-jdk package.
🌐
Red Hat
docs.redhat.com › es › documentation › red_hat_build_of_openjdk › 8 › html-single › installing_and_using_red_hat_build_of_openjdk_8_for_rhel › index
Installing and using Red Hat build of OpenJDK 8 for RHEL | Red Hat build of OpenJDK | 8 | Red Hat Documentation
Navigate to the Software Downloads page on the Red Hat Customer Portal. Select the latest version of Red Hat build of OpenJDK 8 from the Version drop-down list, and then download the JDK archive for Linux to your local system.
🌐
OpenJDK
openjdk.org › projects › jdk8
JDK 8
Production-ready binary distributions based on the JDK 8 code base are available now from Oracle and will be available soon in most Linux distributions.
🌐
OpenJDK
wiki.openjdk.org › spaces › jdk8u › pages › 41287720 › Main
Main - JDK 8u - OpenJDK Wiki
2 weeks ago - When actively starting working on the bug, add a label of the form 'jdk8u-<username>', to the bug - where <username> is your OpenJDK username - to indicate that you are creating a backport. Take a copy of the patch from the repository of the JDK version closest to 8u to minimise changes.
🌐
Azul Systems
azul.com › home › azul downloads
Java 8, 11, 17, 21, 25 Download for Linux, Windows and macOS
February 25, 2026 - Click here to download the Azul Zulu Builds of OpenJDK for Java 8, 11, 17, 21, 25 for Linux, Windows and macOS. Also download Azul Platform Prime.
🌐
freeCodeCamp
freecodecamp.org › news › install-openjdk-free-java-multi-os-guide
How to Install OpenJDK (Free Java) – Multi OS Guide
September 19, 2022 - For Ubuntu/Debian, the package names are usually named like openjdk-<version_number>-jre-headless. For example: sudo apt install openjdk-8-jre-headless # installs for java 8 or sudo apt install openjdk-13-jre-headless # installs for java 13
Find elsewhere
🌐
Microsoft Learn
learn.microsoft.com › en-us › java › openjdk › download
Download the Microsoft Build of OpenJDK | Microsoft Learn
January 28, 2026 - The following tables provide links ... Java 8, you can download any of the Eclipse Temurin builds of OpenJDK 8 from the Eclipse Adoptium project....
🌐
Oracle
java.com › en › download
Download Java
» Why is Java 8 recommended » What is Java » Remove older versions » Windows FAQ » Security » Support » Other help · This download is for end users who need Java for running applications on desktops or laptops. Java 8 integrates with your operating system to run separately installed ...
🌐
OpenJDK
openjdk.org
OpenJDK
JDK 8 Updates · JDK 9 · JDK (…, 25, 26, 27) JDK Updates · JMC · Jigsaw · Lanai · Leyden · Lilliput · Loom · Memory Model Update · Metropolis · Multi-Language VM · Nashorn · New I/O · OpenJFX · Panama · Port: AArch32 · Port: AArch64 · Port: BSD · Port: Haiku ·
🌐
OpenLogic
openlogic.com › openjdk-downloads
OpenJDK Downloads | OpenLogic
OpenLogic now provides free, quarterly builds of OpenJDK 8, OpenJDK 11, OpenJDK 17, and OpenJDK 21 for Linux, Windows, and MacOS. ... Note: Open source OpenJDK is provided free of charge and "as is", without warranty of any kind, express or implied. In no event shall Perforce Software, Inc. or its affiliates be liable for any claim, damages, or other liability arising from out of or in connection with open source OpenJDK software downloaded from this site.
🌐
Oracle
oracle.com › java › technologies › downloads
Download the Latest Java LTS Free
These downloads can be used for development, personal use, or within Oracle Cloud. Use for other purposes, including production or commercial use, requires a Java SE subscription product. Commercial license and support are available for a low cost with Java SE Universal Subscription. Java 8 Enterprise Performance Pack is licensed under the Oracle Technology Network License Agreement for Oracle Java SE.
🌐
Oracle
jdk.java.net › 17
JDK 17 Releases
Older releases, which do not include the most up to date security vulnerability fixes and are no longer recommended for use in production, remain available in the OpenJDK Archive.
🌐
Gluon
gluonhq.com › home › products › javafx
JavaFX - Gluon
August 16, 2018 - Roadmap Release GA Date Latest version Minimum JDK Long Term Support Extended or custom support Details 27 September 2026 early access 24 no 26 March 2026 26.0.1 (April 2026) 24 no upon request details 25 September 2025 25.0.3 (April 2026) 23 yes upon request details 24 March 2025 24.0.2 (July 2025) 22 no upon request […]
🌐
Adoptium
adoptium.net › temurin › releases
Download Temurin® JDK
All VersionsJDK 25 - LTSJDK 21 - LTSJDK 17 - LTSJDK 11 - LTSJDK 8 - LTS · No releases match your current filter criteria. Try adjusting your selections or reset all filters to see available releases. There are multiple different ways to get Eclipse Temurin beyond direct downloads. The curated list below shows some of these options for installing high-performance, cross-platform, open-source OpenJDK runtime binaries.
🌐
Oracle
docs.oracle.com › javase › 8 › docs › technotes › guides › install › install_overview.html
JDK 8 and JRE 8 Installation Start Here
2 days ago - This page gives access to instructions for installing the JDK and JRE on Oracle Solaris, Windows, Linux, and macOS computers.
🌐
Oracle
jdk.java.net
JDK Builds from Oracle
Looking for Oracle JDK builds and information about Oracle’s enterprise Java products and services? Visit the Oracle JDK Download page.
🌐
OpenJDK
openjdk.org › guide
The OpenJDK Developers' Guide – OpenJDK Developers’ Guide
Adding an additional value for a separate release family where it’s still reproducible, e.g. JDK 21, is encouraged if there isn’t currently a feature release value set, or, it has been a few releases since it was last reproduced/reviewed. For example, if the Affects Version/s is 8, but it is still relevant to the latest mainline release.