Other download options for Red Hat build of OpenJDK
The Red Hat build of OpenJDK is a free and open source implementation of the Java Platform, Standard Edition (Java SE).
The Red Hat build of OpenJDK is a free and open source implementation of the Java Platform, Standard Edition (Java SE).
Build your container now. Download secure, certified, and up-to-date container images for the Red Hat build of OpenJDK.
Simplify the modernization of your legacy applications and reduce risks with the migration toolkit for applications, which is included with a Red Hat OpenShift subscription.
Red Hat build of OpenJDK enables developers to run Java applications on a wide variety of environments, with enterprise support for RHEL, Red Hat OpenShift, and Windows. If you prefer to download it manually, click here.
$ sudo yum install java-17-openjdk
$ java -version
openjdk 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)
Download the file and run the following commands:
$ mkdir ~/jdks
$ cd ~/jdks
$ tar -xf java-17-openjdk-17.0.2.0.8-3.portable.jre.el7.x86_64.tar.xz -C ~/jdks
$ ln -s ~/jdks/java-17-openjdk-17.0.2.0.8-3.portable.jdk.el7.x86_64 ~/jdks/java-17
$ export JAVA_HOME=~/jdks/java-17
C:\> setx /m PATH
"%PATH%;C:\Progra~1\RedHat\java-17-openjdk-17.0.0.0.35-1\bin"
C:\> setx /m JAVA_HOME
"C:\Progra~1\RedHat\java-17-openjdk-17.0.0.0.35-1"
apt-get install temurin-17-jdk
yum install temurin-17-jdk
zypper install temurin-17-jdk
sdk install java 17.0.5-tem
choco install temurin
brew install –cask temurin
brew tap homebrew/cask-version
brew install --cask temurin17
brew install --cask temurin11
brew uninstall --cask temurin
sdk install java 17.0.5-tem
choco install temurin