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 - ======================================================================================== Package Arch Version Repository Size ======================================================================================== Installing: java-17-openjdk x86_64 1:17.0.2.0.8-4.el8_5 appstream 244 k Installing dependencies: adwaita-cursor-theme noarch 3.28.0-2.el8 appstream 646 k adwaita-icon-theme noarch 3.28.0-2.el8 appstream 11 M at-spi2-atk x86_64 2.26.2-1.el8 appstream 88 k at-spi2-core x86_64 2.28.0-1.el8 appstream 168 k colord-libs x86_64 1.4.2-1.el8 appstream 234 k java-17-openjdk-headless x86_64 1:17.0.2.0.8-4.el8_5 appstream 41 M lcms2 x86_64 2.9-2.el8 appstream 163 k …
🌐
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)
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
Will CentOS 7 include a java-17-openjdk package in yum
I can't speak for the RHEL engineering team, but unless there is a Java SCL toolset (which I'm not seeing) you are unlikely to see Java 17 be provided in EL7 natively. RHEL 7 shifted into Phase 1 Maintenance mode in 2019, and Phase 2 Maintenance mode in 2020. You shouldn't expect to see new features for this platform outside of tertiary repos, like SCL. https://access.redhat.com/product-life-cycles/?product=Red%20Hat%20Enterprise%20Linux https://access.redhat.com/support/policy/updates/errata/#Maintenance_Support_1_Phase If you need Java 17 but have to use EL7 as your base OS, I would recommend checking out the available EL8 container images to use for your applications to deploy with Podman or Docker. quay.io/centos/centos:stream8 docker.io/library/almalinux:8 docker.io/rockylinux/rockylinux:8 More on reddit.com
🌐 r/CentOS
3
0
November 17, 2021
CentOS log4j vulnerabilities?
Vulnerable versions are v2.0 to 2.14. CentOS ships v1.2.17, so not vulnerable. More on reddit.com
🌐 r/CentOS
14
18
December 12, 2021
Java on centOS stream 10
I’ve been trying for the last hour or 2 trying to do research and attempt a few ways to get Java downloaded I find this statement confusing. It takes like 1-2 seconds to search this on Google, and then maybe another 10 to copy & paste the needed command ... After 5 minutes tops you're done and Java is running. What exactly have you tried?? More on reddit.com
🌐 r/CentOS
9
1
December 24, 2024
🌐
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 ·...
🌐
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.
🌐
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
🌐
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.
🌐
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
🌐
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 ·
🌐
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)
🌐
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 ...
🌐
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 ·
🌐
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.
🌐
Medium
medium.com › @milanmadusankamms › how-to-install-java-on-a-red-hat-server-rhel-centos-rocky-step-by-step-guide-897c4d194c20
How to Install Java on a Red Hat Server (RHEL/CentOS/Rocky) — Step-by-Step Guide | by Milan Madusanka senarathna | Medium
May 2, 2025 - Selection Command ----------------------------------------------- *+ 1 /usr/lib/jvm/java-11-openjdk/bin/java 2 /usr/lib/jvm/java-17-openjdk/bin/java Enter to keep current selection[+], or type selection number: Pick the one you want. ... Put it in your .bashrc or .bash_profile to make it permanent. That’s it — you’ve got Java installed on your Red Hat server and ready to roll.
🌐
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:
🌐
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 ...