Installing and using Red Hat build of OpenJDK 8 for Windows


Red Hat build of OpenJDK 8

Red Hat Developer Customer Content Services

Abstract

Red Hat build of OpenJDK is a Red Hat offering on the Microsoft Windows platform. The Installing and using Red Hat build of OpenJDK 8 for Windows guide provides an overview of this product and explains how to install the software and start using it.

To report an error or to improve our documentation, log in to your Red Hat Jira account and submit an issue. If you do not have a Red Hat Jira account, then you will be prompted to create an account.

Procedure

  1. Click the following link to create a ticket.
  2. Enter a brief description of the issue in the Summary.
  3. Provide a detailed description of the issue or enhancement in the Description. Include a URL to where the issue occurs in the documentation.
  4. Clicking Submit creates and routes the issue to the appropriate documentation team.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. We are beginning with these four terms: master, slave, blacklist, and whitelist. Because of the enormity of this endeavor, these changes will be implemented gradually over several upcoming releases. For more details, see our CTO Chris Wright’s message.

Chapter 1. Red Hat build of OpenJDK overview

OpenJDK (Open Java Development Kit) is a free and open source implementation of the Java Platform, Standard Edition (Java SE). The Red Hat build of OpenJDK is available in three versions: 8u, 11u, and 17u.

Packages for the Red Hat build of OpenJDK are made available on Red Hat Enterprise Linux and Microsoft Windows and shipped as a JDK and JRE in the Red Hat Container Catalog.

Red Hat build of OpenJDK 8 for Microsoft Windows can be installed manually using an archive or through a graphical user interface using an MSI-based installer.

Depending on your circumstance, use one of the following installation methods:

This procedure describe how to manually install Red Hat build of OpenJDK 8 for Microsoft Windows using the archive.

Procedure

  1. Download the archive of Red Hat build of OpenJDK 8 for Microsoft Windows.
  2. Extract the contents of the archive to a directory of your choice.

    Note

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

  3. Update the PATH as below:

    1. Add the bin directory contained in your Red Hat build of OpenJDK 8 for Microsoft Windows installation path to the %PATH% environment variable:

      C:\> setx /m PATH "%PATH%;C:\Progra~1\RedHat\java-1.8.0-openjdk-1.8.0.181-1\bin"
      Copy to Clipboard Toggle word wrap

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

    2. Restart Command Prompt to reload the environment variables.
  4. Verify the Red Hat build of OpenJDK 8 for Microsoft Windows is successfully installed, run java -version command in a command prompt and you must get the following output:

    java version "1.8.0_181"
    Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
    Copy to Clipboard Toggle word wrap
  5. The %JAVA_HOME% environment variable must also be set to use some developer tools. Set the %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 8 for Microsoft Windows installation path:

      C:\> setx /m JAVA_HOME "C:\Progra~1\RedHat\java-1.8.0-openjdk-1.8.0.181-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

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

Procedure

  1. Download the archive of Red Hat build of OpenJDK 8 for Microsoft Windows.
  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 8 for Microsoft Windows installation path:

      C:\> setx /m JAVA_HOME "C:\Progra~1\RedHat\java-8-openjdk-1.8.0_181"
      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
    java version "1.8.0_181"
    Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
    Copy to Clipboard Toggle word wrap

This procedure discribes how to install Red Hat build of OpenJDK 8 for Microsoft Windows using the MSI-based installer.

Procedure

  1. Download the MSI-based installer of Red Hat build of OpenJDK 8 for Microsoft Windows.
  2. Run the installer Red Hat build of OpenJDK 8 for Microsoft Windows.
  3. Click Next on the welcome screen.
  4. Check I accept the terms in license agreement, then click Next.
  5. Click Next.
  6. Accept the defaults or review the optional properties.
  7. Click Install.
  8. Click Yes on the Do you want to allow this app to make changes on your device?.
  9. Verify the Red Hat build of OpenJDK 8 for Microsoft Windows is successfully installed, run java -version command in the command prompt and you must get the following output:

    java version "1.8.0_181"
    Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
    Copy to Clipboard Toggle word wrap

The Red Hat build of OpenJDK 8 for Microsoft Windows MSI-based installer includes the following components:

jdk
Runtime environment files (excluding development tools).
jdk_devel
Java Development Kit files.
jdk_registry_standard

Registry keys:

HKLM\Software\JavaSoft\Java Runtime Environment, entries:
  CurrentVersion: 1.8

HKLM\Software\JavaSoft\Java Runtime Environment\1.8, entries:
  JavaHome: <INSTALLDIR>\jre\
  RuntimeLib: <INSTALLDIR>\jre\bin\server\jvm.dll

HKLM\Software\JavaSoft\Java Runtime Environment\1.8_<update>, entries:
  JavaHome: <INSTALLDIR>\jre\
  RuntimeLib: <INSTALLDIR>\jre\bin\server\jvm.dll
Copy to Clipboard Toggle word wrap
jdk_registry_standard_devel

Registry keys:

HKLM\Software\JavaSoft\Java Development Kit, entries:
  CurrentVersion: 1.8

HKLM\Software\JavaSoft\Java Development Kit\1.8, entries:
  JavaHome: <INSTALLDIR>
  RuntimeLib: <INSTALLDIR>\jre\bin\server\jvm.dll

HKLM\Software\JavaSoft\Java Development Kit\1.8_<update>, entries:
  JavaHome: <INSTALLDIR>
  RuntimeLib: <INSTALLDIR>\jre\bin\server\jvm.dll
Copy to Clipboard Toggle word wrap
jdk_env_path
Appends <INSTALLDIR>\bin and <INSTALLDIR>\jre\bin to the system %PATH% environment variable.
jdk_env_java_home
Sets <INSTALLDIR> to the system %JAVA_HOME% environment variable.
jdk_env_vendor_java_home
Sets <INSTALLDIR> to the system %REDHAT_JAVA_HOME% environment variable.
jdk_registry_jar
Association for JAR files. Launch JAR files using the Red Hat build of OpenJDK context menu.
jmc
JDK Mission Control Files.
jmc_env
Appends `<jdk>/missioncontrol to the 'PATH' system environment variable.
webstart
WebStart files, installed into <INSTALLDIR>\webstart.
webstart_registry
Association for JNLP files and jnlp:// URLs.
webstart_env
Appends <INSTALLDIR>\webstart to the system %PATH% environment variable.
webstart_migrate
Migrate WebStart local settings and cache on update.
webstart_plugin
Installs plugin.jar into <jdk>/jre/lib/ for compatibility with third-party applications. Web browser plugin implementation is not included.

Appendix A. MSI-based installer properties

The Red Hat build of OpenJDK for Windows MSI-based installer includes the JDK Files component and the following optional properties:

Expand
Table A.1. Red Hat build of OpenJDK for Windows MSI-based installer properties
PropertyDescriptionDefault value

OpenJDK Runtime - Windows Registry

The following registry keys are set HKLM\Software\JavaSoft\JDK\<version>, entries: JavaHome: <INSTALLDIR> RuntimeLib: <INSTALLDIR>\bin\server\jvm.dll HKLM\Software\JavaSoft\JDK, entries: CurrentVersion: <version>

Yes

OpenJDK Runtime - Path Variable

Adds the Runtime to the Path variable so it is available from the command line.

Yes

OpenJDK Runtime - JAVA_HOME System Variable

JAVA_HOME is used by some programs to find the Java runtime.

No

OpenJDK Runtime - REDHAT_JAVA_HOME System Variable

REDHAT_JAVA_HOME can be used by some programs to find the Red Hat build of OpenJDK runtime.

No

OpenJDK Runtime - Jar Files Association

This enables Jar files to be run from within Windows Explorer.

No

Mission Control - Files

Contains files that are installed in the <installdir>\missioncontrol directory.

No

Mission Control - Path Variable

Appends <installdir>\missioncontrol to the system PATH environment variable.

No

Web Start - JNLP File Association

Enables the launching of JNLP files downloaded from the web.

No

Web Start - PATH Variable

Enables the launching of JNLP files downloaded from the web from the local file system.

No

Web Start - Keep Settings and Cache

Keeps settings and caches on the local file system.

No

Web Start - Install plugin.jar

Installs plugin.jar into the jre\lib directory.

No

Revised on 2024-05-10 09:08:58 UTC

Legal Notice

Copyright © 2024 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat