You might simply build this yourself. If it worked before, chances are the build for Fedora works. You will need a Fedora 34+ host to cross-build this.

# Don't build as root. Only need root privileges to install `fedpkg`,
sudo dnf install -y fedpkg

# Now get the package description
git clone https://src.fedoraproject.org/rpms/java-17-openjdk
# Use fedpkg to kick off a mock build
cd java-17-openjdk
fedpkg mockbuild --root centos-7-x86_64

This will take a while¹; and in the end, you should be getting a line that tells you where the RPMs you've just built were put.


¹ mock sets up a chroot, in which it installs a CentOS 7 base system, then EPEL, which you'll almost certainly will need, I think, then the tools necessary to build any RPM, then the build-time dependencies of the java-17-openjdk package. Then it will download all the necessary source code, hand off to rpm-build to do the build, which includes applying all patches, then compiling OpenJDK, then, running the OpenJDK installation, collecting the installed files, compressing them into valid RPMs.

Answer from Marcus Müller on Stack Exchange
🌐
ComputingForGeeks
computingforgeeks.com › home › install temurin openjdk 17 on centos 7|rhel 7|oracle linux 7
Install Temurin OpenJDK 17 on CentOS 7|RHEL [Guide]
March 12, 2024 - This guide takes an in-depth illustration of how to install Temurin OpenJDK 17 on CentOS 7| RHEL 7 | Oracle Linux 7 · Update your system packages to the latest stable versions. sudo yum update -y ·
🌐
Vegastack
vegastack.com › tutorials › how-to-install-java-on-centos-7
How to Install Java on CentOS 7
November 15, 2023 - For example, sudo yum install java-1.11.0-openjdk installs OpenJDK 11. Edit the /etc/environment file and add JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-<version> (replace <version> with the installed Java version).
🌐
OrcaCore
orcacore.com › home › basic linux › easy steps to install openjdk 17 on centos 7
Easy Steps To Install OpenJDK 17 on Centos 7 - OrcaCore
December 25, 2024 - Output openjdk version "17.0.2" ... https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpm · Then, install the RPM package using the yum or rpm command:...
🌐
ComputingForGeeks
computingforgeeks.com › home › install java 17 (openjdk 17) on fedora 41/40/39/38
Install Java 17 (OpenJDK 17) on Fedora 41/40/39/38 [Guide]
December 10, 2024 - java -version openjdk 17.0.10 ... https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpm · Then install the RPM package using the yum or rpm command....
🌐
Medium
medium.com › @minaxijoshi3101 › install-java-on-centos-and-set-java-home-using-the-yum-repo-8696fea58266
Install JAVA on Centos and windows. Also, set JAVA_HOME using the YUM repo | by DevOpsLab-LiveScenarios | Medium
September 29, 2024 - ·Jan 17, 2024 · -- Listen · Share · Steps: Check Centos Version: cat /etc/redhat-release or cat /etc/os-release · Press enter or click to view image in full size · Update the System: sudo yum update · 2. Check which versions of Java are ...
🌐
javathinking
javathinking.com › blog › jdk-17-install-linux
A Complete Guide to Installing JDK 17 on Linux — javathinking.com
# For RHEL/CentOS/Rocky sudo dnf install java-17-openjdk-devel # For older RHEL/CentOS 7 versions using yum sudo yum install java-17-openjdk-devel
Find elsewhere
🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_build_of_openjdk › 17 › html › installing_and_using_red_hat_build_of_openjdk_17_on_rhel › installing-openjdk-on-rhel_openjdk
Chapter 2. Installing Red Hat build of OpenJDK 17 on Red Hat Enterprise Linux | Installing and using Red Hat build of OpenJDK 17 on RHEL | Red Hat build of OpenJDK | 17 | Red Hat Documentation
Add the installonlypkgs option in the /etc/yum.conf directory to specify the Red Hat build of OpenJDK packages that yum can install but not update. installonlypkgs=java-<version>--openjdk,java-<version>--openjdk-headless,java-<version>--openjdk-devel · Updates will install new packages while ...
🌐
Server World
server-world.info › en › note
CentOS Stream 9 : OpenJDK 17 : Install : Server World
This article provides an example of how to install OpenJDK 17 from a package and check its operation on CentOS Stream 9.
🌐
Server World
server-world.info › en › note
CentOS Stream 8 : OpenJDK 17 : Install : Server World
(03) Install OpenJDK 17 · (04) Install Tomcat 9 · (05) Install Tomcat 10 · Ruby · (01) Install Ruby 2.5 · (02) Install Ruby 2.6 · (03) Install Ruby 2.7 · (04) Install Ruby 3.0 · (05) Install Ruby 3.1 · (06) Install Ruby on Rails 5 · (07) Install Ruby on Rails 6 ·
🌐
Medium
medium.com › @nothanjack › mastering-the-process-how-to-install-openjdk-17-on-centos-7-25eb121ef67a
Mastering the Process: How to Install OpenJDK 17 on CentOS 7 | by Jack Nothan | Medium
September 5, 2024 - Before explain How To Install OpenJDK 17 on Centos 7, it’s essential to ensure that your package repository is up to date.
🌐
DevOpsSchool.com
devopsschool.com › blog › complete-guide-of-java-installation-in-linux
Java Installation Guide in Linux & Windows -
12 Download and Install JDK/JRE 21 in Centos / RHEL · 13 Download and Install JDK/JRE 21 in Ubuntu · 14 How to Remove Java Installed? 15 How to download Open Java Packages in Linux? 16 How to set JAVA HOME in Linux System? 17 How to set JAVA HOME env in Windows? 18 Command to set default Java version in Linux? 19 How to install Open JDK Java in Windows? $ su -c "yum install java-1.7.0-openjdk" # JRE Version $ su -c "yum install java-1.7.0-openjdk-devel" # JDK versionCode language: PHP (php) $ su -c "yum install java-1.8.0-openjdk" # JRE Version $ su -c "yum install java-1.8.0-openjdk-devel"
🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_build_of_openjdk › 17 › html-single › installing_and_using_red_hat_build_of_openjdk_17_on_rhel › index
Installing and using Red Hat build of OpenJDK 17 on RHEL | Red Hat build of OpenJDK | 17 | Red Hat Documentation
Add the installonlypkgs option in the /etc/yum.conf directory to specify the Red Hat build of OpenJDK packages that yum can install but not update. installonlypkgs=java-<version>--openjdk,java-<version>--openjdk-headless,java-<version>--openjdk-devel · Updates will install new packages while ...
🌐
LinuxVox
linuxvox.com › blog › how-to-install-java-on-centos-7
How to Install Java on CentOS 7: A Comprehensive Guide — linuxvox.com
CentOS 7’s default repos may not include OpenJDK 17. To install it, enable the EPEL (Extra Packages for Enterprise Linux) repository first: sudo yum install epel-release -y sudo yum update -y
🌐
TecMint
tecmint.com › home › open source › how to install java 17 on rhel-based linux distributions
How to Install Java 14 on CentOS/RHEL 7/8 & Fedora
November 1, 2021 - In this article, we will show you how to install OpenJDK 16 from the EPEL repository and Oracle OpenJDK 17 (the latest release) using binary packages in RHEL-based Linux distributions such as CentOS, Fedora, Rocky Linux, and AlmaLinux to develop and run Java applications.