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
🌐
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 ...
🌐
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
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 ...
Discussions

rpm - OpenJDK 17 for CentOS 7 - Unix & Linux Stack Exchange
Currently there is no possibility to install java-17-openjdk through sudo yum install java-17-openjdk on a CentOS 7 system (CentOS Linux release 7.9.2009 (Core)) as it was possible some time ago. W... More on unix.stackexchange.com
🌐 unix.stackexchange.com
May 23, 2022
yum - how to install amazon Corretto 17 on centos - Stack Overflow
yum install -y java-17-openjdk-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * fasttrack: mirror.centos.org No package java-17-openjdk-devel available. More on stackoverflow.com
🌐 stackoverflow.com
How to install Java SDK on CentOS? - Stack Overflow
I have CentOS 5, but I don't know the steps to install Java SDK on Linux. Where to download the RPM file and what can I do next to fully install that? Then I need to install Tomcat. Or is there ... More on stackoverflow.com
🌐 stackoverflow.com
How do you manually install java openjdk?
Did you try follow the instructions? https://openjdk.org/install/ Then you have a folder with all the stuff you need. Now you need to tell your OS how to find the binaries and libraries. For that you need to tell us your OS (Debian, Ubuntu, Arch, Fedora, ...). More on reddit.com
🌐 r/linuxadmin
18
0
November 7, 2024
🌐
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 - More recently, OpenJDK changed ... number in the package name, just like with 1.8.0. For example, in order to install OpenJDK 17, you can yum install java-17-openjdk:...
🌐
LinuxVox
linuxvox.com › blog › install-java-17-linux
Installing Java 17 on Linux: A Comprehensive Guide — linuxvox.com
# Enable the EPEL repository (if not already enabled) sudo yum install epel - release # Install OpenJDK 17 JDK sudo yum install java - 17 - openjdk - devel
🌐
OpenJDK
openjdk.org › install
OpenJDK: Download and install
The openjdk-7-jre package contains just the Java Runtime Environment. If you want to develop Java programs then install the openjdk-7-jdk package. On the command line, type: $ su -c "yum install java-1.7.0-openjdk" The java-1.7.0-openjdk package contains just the Java Runtime Environment.
Find elsewhere
🌐
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 - Then proceed to install OpenJDK 17 locally in your system: sudo yum install java-17-openjdk java-17-openjdk-devel · Verify the Java installation.
🌐
AWS
docs.aws.amazon.com › corretto › corretto 17 user guide › amazon corretto 17 guide for linux › amazon corretto 17 installation instructions for amazon linux 2 and amazon linux 2023
Amazon Corretto 17 Installation Instructions for Amazon Linux 2 and Amazon Linux 2023 - Amazon Corretto 17
While it is recommended to use ... /etc/alternatives/java_sdk_17_openjdk for JDK. The paths under /etc/alternatives/ may point to another JDK depending on the packages installed and system configuration. Download RPMs from the Downloads page for your CPU architecture. To install the JDK, you will need to download the RPMs for both the JDK and the JRE. Install using yum ...
🌐
ComputingForGeeks
computingforgeeks.com › home › install java 17 (openjdk 17) on oracle linux 8
Install Java 17 (OpenJDK 17) on Oracle Linux 8 [Guide]
March 16, 2026 - A significant number of Java Enhancement Proposals (JEPs) have been released in version 17 as listed below: ... You can install OpenJDK 17 from OS default repositories. sudo yum install java-17-openjdk java-17-openjdk-devel
🌐
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
🌐
Simplified
simplified.guide › java › jdk-install-redhat
How to install OpenJDK on Red Hat, CentOS, and Fedora
OpenJDK can be installed on Red Hat-based distributions using package managers such as yum or dnf. The available versions of OpenJDK include Java 8, Java 11, and Java 17, depending on your requirements.
🌐
GitHub
gist.github.com › concosminx › c0471cee65bd2ec8cc3c964397ff70bf
Install Java on Rocky Linux · GitHub
sudo yum install java-17-openjdk java-17-openjdk-devel · Install Oracle JDK · install wget | curl sudo dnf -y install wget curl · get the RPM file from oracle curl -O https://download.oracle.com/java/17/archive/jdk-17.0.3.1_linux-x64_bin.rpm ...
🌐
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 - Java 17 can be installed by following this easy to understand tutorial, just follow the steps based on your system and install the OpenJDK 17 on your machine, you can also install the Java 17 without superuser access.
🌐
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 - JDK 17 is the open-source reference implementation of version 17 of the Java SE Platform as specified by by JSR 388 in the Java Community Process. Install JDK | OpenJDK 17 on your Fedora by following the steps below.
🌐
javathinking
javathinking.com › blog › how-to-install-jdk-17
How to Install JDK 17: A Comprehensive Guide for Windows, macOS, and Linux — javathinking.com
sudo dnf install temurin-17-jdk # For RHEL 8+/CentOS 8+ # OR sudo yum install temurin-17-jdk # For RHEL 7/CentOS 7 · For distributions without package managers (e.g., Alpine Linux), use the tarball: Download the Tarball: Go to Eclipse Temurin ...
🌐
Red Hat
developers.redhat.com › blog › 2018 › 12 › 10 › install-java-rhel8
How to install Java 17 and 21 on Red Hat Enterprise Linux 8 | Red Hat Developer
September 3, 2024 - For the purpose of this article, we are going to install JDK 21 and JDK 17 in parallel, and also install Maven: $ sudo yum install java-21-openjdk-devel java-17-openjdk-devel maven
🌐
javaspring
javaspring.net › blog › yum-install-java-17
A Comprehensive Guide to `yum install java 17` — javaspring.net
This will show all Java-related packages that can be installed using yum. If you have an older version of Java installed and want to replace it with Java 17, you can remove the old version first: ... Replace java-1.8.0-openjdk with the actual package name of the Java version you want to remove.