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)
Discussions

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
Installing Java to Another Location on Centos 7
JAVA_HOME needs to point to a JDK directory not to a java binary itself. More on reddit.com
🌐 r/linux4noobs
5
1
August 15, 2022
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
🌐
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:...
🌐
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
🌐
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 ·...
Find elsewhere
🌐
Oracle
docs.oracle.com › en › java › javase › 17 › install › installation-jdk-linux-platforms.html
4 Installation of the JDK on Linux Platforms - Java
April 21, 2026 - Previous Next JavaScript must be enabled to correctly display this content · This topic describes the installation procedures of the JDK on the Linux platform, along with the system requirements. ... Installing the JDK on Linux from Archive Files, Debian Packages, RPM Packages, and Oracle Linux Repositories · This topic describes general information about installing JDK 17 on Linux platforms.
🌐
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 ...
🌐
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 - The following sections provide steps to install OpenJDK, OpenJRE, and Oracle Java on a CentOS or Rocky Linux system.
🌐
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.
🌐
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.
🌐
Dotlinux
dotlinux.net › blog › how-to-install-java-17-on-rhel-based-linux-distributions
How to Install Java 17 on RHEL-based Linux Distributions
If you’re using a RHEL-based Linux distribution—such as Red Hat Enterprise Linux (RHEL), CentOS Stream, Fedora, Rocky Linux, or AlmaLinux—this guide will walk you through two reliable methods to install Java 17: 1. **Oracle JDK 17** (Oracle’s official distribution, requires a license ...
🌐
Vegastack
vegastack.com › tutorials › how-to-install-java-on-centos-7
How to Install Java on CentOS 7
November 15, 2023 - OpenJDK is the open-source implementation of Java-Platform. Further, it is the default Java development and runtime in CentOS 7. 1) OpenJDK 11 is the current LTS version of Java and recommendation as well. You can install it with yum using the below command:
🌐
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 applications for Java, you need to install the Oracle Java Development Kit (JDK), which comes with a complete JRE package with tools for developing, debugging, and monitoring Java applications and it is an Oracle’s supported 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 Linux, and AlmaLinux to develop and run Java applications.
🌐
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.
🌐
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.