Este contenido no está disponible en el idioma seleccionado.
Chapter 2. Installing Red Hat build of OpenJDK 17 for Microsoft Windows with the archive
This procedure describes how to manually install Red Hat build of OpenJDK 17 for Microsoft Windows using the archive.
Procedure
- Download the archive of Red Hat build of OpenJDK 17 for Microsoft Windows.
Extract the contents of an archive to a directory of your choice.
NoteExtracting the contents of an archive to a directory path that does not contain spaces is recommended.
Update the
PATH
as below:Add the
bin
directory contained in your Red Hat build of OpenJDK 17 for Microsoft Windows installation path to the%PATH%
environment variable:setx /m PATH "%PATH%;C:\Progra~1\RedHat\java-17-openjdk-17.0.0.0.35-1\bin"
C:\> setx /m PATH "%PATH%;C:\Progra~1\RedHat\java-17-openjdk-17.0.0.0.35-1\bin"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If the path contains spaces, use the shortened path name.
- Restart Command Prompt to reload the environment variables.
Verify the Red Hat build of OpenJDK 17 for Microsoft Windows is successfully installed, run
java -version
command in a command prompt and you must get the following output:openjdk version "17" 2021-09-14 LTS OpenJDK Runtime Environment 21.9 (build 17+35-LTS) OpenJDK 64-Bit Server VM 21.9 (build 17+35-LTS, mixed mode, sharing)
openjdk version "17" 2021-09-14 LTS OpenJDK Runtime Environment 21.9 (build 17+35-LTS) OpenJDK 64-Bit Server VM 21.9 (build 17+35-LTS, mixed mode, sharing)
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
%JAVA_HOME%
environment variable must also be set to use some developer tools. Set the%JAVA_HOME%
environment variable as follows:- Open Command Prompt as an administrator.
Set the value of the environment variable to your Red Hat build of OpenJDK 17 for Microsoft Windows installation path:
setx /m JAVA_HOME "C:\Progra~1\RedHat\java-17-openjdk-17.0.0.0.35-1"
C:\> setx /m JAVA_HOME "C:\Progra~1\RedHat\java-17-openjdk-17.0.0.0.35-1"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If the path contains spaces, use the shortened path name.
- Restart Command Prompt to reload the environment variables.