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
🌐
DigitalOcean
digitalocean.com › community › tutorials › how-to-install-java-on-centos-and-fedora
How To Install Java on CentOS, Rocky Linux, RHEL, and Fedora | DigitalOcean
March 18, 2022 - This tutorial will show you how to install Java on current versions of RPM-based Linux distributions: Red Hat Enterprise Linux, CentOS, Fedora, and Rocky Lin…
🌐
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 - Transaction Summary ====================================================================================================================================================================================================== Install 3 Packages Total download size: 50 M Installed size: 196 M Is this ok [y/N]: ... Running these commands will output the default version of Java in the system. ... java -version openjdk version "17.0.10" 2024-01-16 OpenJDK Runtime Environment (Red_Hat-17.0.10.0.7-3) (build 17.0.10+7) OpenJDK 64-Bit Server VM (Red_Hat-17.0.10.0.7-3) (build 17.0.10+7, mixed mode, sharing)
🌐
PhoenixNAP
phoenixnap.com › home › kb › sysadmin › how to install java on centos and rocky linux
How to Install Java on CentOS and Rocky Linux
December 16, 2025 - Install Java on CentOS and Rocky Linux with this tutorial. Also, learn to change the default version and set the environment variable.
🌐
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 - 2. Check which versions of Java ... package, includes headers and static libraries using below yum command: yum install java-17-openjdk-devel.x86_64 -y ·...
🌐
ComputingForGeeks
computingforgeeks.com › home › install java 17 (openjdk 17) on almalinux / rocky 8
Install Java 17 (OpenJDK 17) on AlmaLinux / Rocky 8 [Guide]
March 16, 2026 - We have come to the end of our Guide. I have demonstrated the two ways to get Java 17 LTS Installed on Rocky / CentOS / AlmaLinux 8, configuring and setting the default Java version for your system.
🌐
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 - To do this, you can follow our ... command below: ... At this point, you need to visit the JDK Downloads page to download the latest archive of Java 17 by using the wget command:...
🌐
DevOpsSchool.com
devopsschool.com › blog › complete-guide-of-java-installation-in-linux
Java Installation Guide in Linux & Windows -
1 DOWNLOAD OPEN JDK & JRE JAVA PACKAGE FROM – https://jdk.java.net/archive/ 2 Download and Install JDK/JRE 7 in Centos & RHEL · 3 Download and Install JDK/JRE 8 in Centos & RHEL · 4 Download and Install JDK/JRE 9 in Centos & RHEL · 5 Download ...
Find elsewhere
🌐
OVHcloud
ovhcloud.com › home › tutorials › how to install java on centos 7
How to install Java on Centos 7 ? | OVHcloud Worldwide
$ curl -O https://download.java.net/java/GA/jdk18.0.1.1/65ae32619e2f40f3a9af3af1851d6e19/2/GPL/openjdk-18.0.1.1_linux-x64_bin.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 179M 100 179M 0 0 27.6M 0 0:00:06 0:00:06 --:--:-- 29.1M ... Manually add the java setup to ‘alternatives’. Alternatives creates, removes, maintains, and displays information about the symbolic links comprising the alternatives system. sudo alternatives --install /usr/bin/java java /opt/jdk-18.0.1.1/bin/java 99 sudo alternatives --install /usr/bin/javac java /opt/jdk-18.0.1.1/bin/javac 99
🌐
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 - If you want to develop software ... Java SE (Standard Edition) version. Note: If you are looking for an open-source and free JDK version, install the OpenJDK which provides the same features and performance as Oracle JDK under the GPL license. 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 ...
🌐
Madhusudan
madhusudan.live › blog › install-java-17-in-linux-fedora-debian
Install Java 17 On Linux in 2 Ways: Step-By-Step Guide
May 5, 2024 - Install Java 17 on any Linux distribution in 2 ways using package manager as well as a tarball with this step by step installation guide, update your JAVA_HOME and PATH environment variables.
🌐
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 - Verify your installation using the command below. ... java --version openjdk 17.0.10 2024-01-16 OpenJDK Runtime Environment Temurin-17.0.10+7 (build 17.0.10+7) OpenJDK 64-Bit Server VM Temurin-17.0.10+7 (build 17.0.10+7, mixed mode, sharing)
🌐
Vegastack
vegastack.com › tutorials › how-to-install-java-on-centos-7
How to Install Java on CentOS 7
November 15, 2023 - You now have a successful installation of Java on your CentOS system. Now, install OpenJDK 17 JRE with yum using the below command:
🌐
Server World
server-world.info › en › note
CentOS Stream 9 : OpenJDK 17 : Install : Server World
CentOS Stream 9 : Java · (01) Install OpenJDK 8 · (02) Install OpenJDK 11 · (03) Install OpenJDK 17 · (04) Install OpenJDK 21 · (05) Install OpenJDK 25 · (06) Install Tomcat 10 · (07) Install Tomcat 11 · (08) Install Jenkins ·
🌐
TecAdmin
tecadmin.net › install-java-on-centos-8
How to Install Java on CentOS 8 – TecAdmin
April 26, 2025 - To download the JDK on CentOS/RHEL 8, you can use the command line: Install Java 11: which is the current popular version among developers. ... Install Java 8: which is still being used by large number of applications. ... Install Java 17: which is the current LTS release.
🌐
Server World
server-world.info › en › note
CentOS Stream 8 : OpenJDK 17 : Install : Server World
CentOS Stream 8 : Java · (01) Install OpenJDK 11 · (02) Install OpenJDK 8 · (03) Install OpenJDK 17 · (04) Install Tomcat 9 · (05) Install Tomcat 10 ·
🌐
Callgoose
docs.callgoose.com › sqibs › java-installation-for-linux-and-windows
Java Installation for Linux and Windows
To install Java 17 on Red Hat-based systems (RHEL, CentOS, Rocky Linux, etc.), you first need to ensure that the EPEL (Extra Packages for Enterprise Linux) repository is enabled, as it may provide additional packages.
🌐
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
You can install Red Hat build of OpenJDK Java Runtime Environment (JRE) by using the yum system package manager. ... Logged in as a user with root privileges on the system. Registered your local system to your Red Hat Subscription Manager account. See Using Red Hat Subscription Manager in the ...