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
access.redhat.com › solutions › 6971906
Is OpenJDK 17 supported on RHEL7? - Red Hat Customer Portal
It seems an existing English Translation exists already. We appreciate your interest in having Red Hat content localized to your language. Please note that excessive use of this feature could cause delays in getting specific content you are interested in translated.
🌐
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
Choose system-wide version of Red ... on RHEL. ... 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 leaving the old versions on the system. $ rpm -qa | grep java-17.0.2-openjdk ...
Discussions

How do I install OpenJDK on Redhat Enterprise Linux on Azure and AWS environments? - Stack Overflow
Does this not work? Install Java 11 (OpenJDK 11) on RHEL 8|CentOS 8|Rocky Linux 8 Or, I guess you want Install Java 17 (OpenJDK 17) on Rocky Linux 8|CentOS 8/7 (not sure about 17 on RHEL) More on stackoverflow.com
🌐 stackoverflow.com
openjdk 17 "is not compatible"
latest vscode, latest extension · this is a legit java home: More on github.com
🌐 github.com
6
January 3, 2023
linux - Need to identify compatible java version for RHEL 7 - Stack Overflow
We are upgrading the RedHatLinuxEnterprise from 5.x to 7.0 and currently application is running in Java 1.7. Can we do the upgrade without upgrading java? We lso want to know the compatible version... More on stackoverflow.com
🌐 stackoverflow.com
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
🌐
Stack Overflow
stackoverflow.com › questions › 74022196 › how-do-i-install-openjdk-on-redhat-enterprise-linux-on-azure-and-aws-environment
How do I install OpenJDK on Redhat Enterprise Linux on Azure and AWS environments? - Stack Overflow
Does this not work? Install Java 11 (OpenJDK 11) on RHEL 8|CentOS 8|Rocky Linux 8 Or, I guess you want Install Java 17 (OpenJDK 17) on Rocky Linux 8|CentOS 8/7 (not sure about 17 on RHEL)
🌐
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 - That is it, you have installed Temurin OpenJDK 17 on CentOS 7| RHEL 7 | Oracle Linux 7. 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) Setting the JAVA_HOME Environment Variable using the above method is not persistent and is lost on system reboot.
🌐
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 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) If you choose to go with Java SE Development Kit 17, download RPM package for CentOS / RHEL / Fedora system using the command below.
🌐
OneUptime
oneuptime.com › home › blog › how to install openjdk 17 on rhel
How to Install OpenJDK 17 on RHEL
March 4, 2026 - # Install the JDK (includes JRE + development tools) sudo dnf install -y java-17-openjdk java-17-openjdk-devel # Verify the installation java -version javac -version · # Find the Java installation path dirname $(dirname $(readlink -f $(which java))) # Set JAVA_HOME system-wide cat << 'JAVAENV' | sudo tee /etc/profile.d/java.sh export JAVA_HOME=/usr/lib/jvm/java-17-openjdk export PATH=$JAVA_HOME/bin:$PATH JAVAENV # Load the new environment source /etc/profile.d/java.sh # Verify echo $JAVA_HOME
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
Choose system-wide version of Red Hat build of OpenJDK from Non-interactively selecting a system-wide Red Hat build of OpenJDK version on RHEL. ... 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 leaving the old versions on the system. $ rpm -qa | grep java-17.0.2-openjdk java-17-openjdk-17.0.1.0.12-2.el8_5.x86_64 java-17-openjdk-17.0.2.0.8-4.el8_5.x86_64
🌐
GitHub
github.com › redhat-developer › vscode-java › issues › 2852
openjdk 17 "is not compatible" · Issue #2852 · redhat-developer/vscode-java
January 3, 2023 - latest vscode, latest extension this is a legit java home: "java.jdt.ls.java.home": "/Library/Java/JavaVirtualMachines/openjdk-17.jdk/Contents/Home", "java.home": &quo...
Author   redhat-developer
🌐
Red Hat
access.redhat.com › articles › 1299013
OpenJDK Life Cycle and Support Policy - Red Hat Customer Portal
2 weeks ago - Red Hat will deliver four updates per year, approximately three months apart, for the OpenJDK 8, 11, 17, 21, and 25 distributions. Why is OpenJDK 8 supported for longer than OpenJDK 11? OpenJDK 8 is now retired on RHEL 6 since its end of life so 1.8.0_275 was the last and final OpenJDK 8 update made available for RHEL 6. RHEL 7, 8 or 9 must be used for continued OpenJDK support and its latest updates moving forward.
🌐
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 - Outputopenjdk version "17.0.2" 2022-01-18 LTS OpenJDK Runtime Environment 21.9 (build 17.0.2+8-LTS) OpenJDK 64-Bit Server VM 21.9 (build 17.0.2+8-LTS, mixed mode, sharing) Many Java applications also use the JAVA_HOME or JRE_HOME environment variables to determine which java executable to use. ... (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.322.b06-2.el8_5.x86_64/jre/bin (i.e. your java executable is located at <^>(/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.322.b06-2.el8_5.x86_64/jre/bin/java), you could set your JAVA_HOME environment variable in a bash shell or script like so: ... Note: The JAVA_HOME environment variable prefers that you set the path to your Java installation ending in the /jre directory.
🌐
javathinking
javathinking.com › blog › how-to-install-jdk-17
How to Install JDK 17: A Comprehensive Guide for Windows, macOS, and Linux — javathinking.com
# Set JAVA_HOME for JDK 17 export ...ME/bin:$PATH · Save and exit (Ctrl + O, Enter, Ctrl + X). ... Cause: PATH variable not configured or JDK not installed....
🌐
Stack Overflow
stackoverflow.com › questions › 45675402 › need-to-identify-compatible-java-version-for-rhel-7
linux - Need to identify compatible java version for RHEL 7 - Stack Overflow
We lso want to know the compatible version of java for RHEL 7. If there is any useful links then please share it. Thanks. ... Java is cross platform, so OS upgrades shouldn't care about Java. However, Java 7 itself is end of life as of 2015 ... Red Hat has extended support for OpenJDK 7 for RHEL 7 to be June 2018.
🌐
Snapcraft
snapcraft.io › install › openjdk › rhel
Install OpenJDK on Red Hat Enterprise Linux using the Snap Store | Snapcraft
April 23, 2026 - The packages for RHEL 7, RHEL 8, and RHEL 9 are in each distribution’s respective Extra Packages for Enterprise Linux (EPEL) repository.
🌐
Tenable
tenable.com › plugins › nessus › 214463
RHEL 8 / 9 : java-17-openjdk security update for RHEL 8.6, 8.8...<!-- --> | Tenable®
January 21, 2025 - The remote Red Hat host is missing a security update for java-17-openjdk. (Nessus Plugin ID 214463)
🌐
Apache
lists.apache.org › thread › qnmowfyvlt6bpn5j2njms1lkjf26fg2s
Which version of java is preferrable to install on a Red Hat ...
Email display mode: · Modern rendering · Legacy rendering · This site requires JavaScript enabled. Please enable it
🌐
RPMfind
rpmfind.net › linux › rpm2html › search.php
RPM resource java-17-openjdk
It does not support multiple arguments yet... The System and Arch are optional added filters, for example System could be "redhat", "redhat-7.2", "mandrake" or "gnome", Arch could be "i386" or "src", etc. depending on your system. The OpenJDK 17 runtime environment.