Este contenido no está disponible en el idioma seleccionado.

Chapter 3. Updating Red Hat build of OpenJDK 17 for Microsoft Windows using the archive


Red Hat build of OpenJDK 17 for Microsoft Windows can be manually update using the archive.

Procedure

  1. Download the archive of Red Hat build of OpenJDK 17.
  2. Extract the contents of an archive to a directory of your choice.

    Note

    Extracting the contents of an archive to a directory path that does not contain spaces is recommended.

  3. On Command Prompt, update JAVA_HOME environment variable as follows:

    1. Open Command Prompt as an administrator.
    2. Set the value of the environment variable to your Red Hat build of OpenJDK 17 for Microsoft Windows installation path:

      C:\> setx /m JAVA_HOME "C:\Progra~1\RedHat\java-17-openjdk-17.0.0.0.35-1"
      Copy to Clipboard Toggle word wrap

      If the path contains spaces, use the shortened path name.

    3. Restart Command Prompt to reload the environment variables.
  4. Set the value of PATH variable if it is not set already:

      C:\> setx -m PATH "%PATH%;%JAVA_HOME%\bin";
    Copy to Clipboard Toggle word wrap
  5. Restart Command Prompt to reload the environment variables.
  6. Verify that java -version works without supplying the full path.

    C:\> java -version
    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 Toggle word wrap
Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2025 Red Hat