Installing and using Red Hat build of OpenJDK 8 for Windows
Abstract
Providing feedback on Red Hat build of OpenJDK documentation Copy linkLink copied to clipboard!
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
- Click the following link to create a ticket.
- Enter a brief description of the issue in the Summary.
- Provide a detailed description of the issue or enhancement in the Description. Include a URL to where the issue occurs in the documentation.
- Clicking Submit creates and routes the issue to the appropriate documentation team.
Making open source more inclusive Copy linkLink copied to clipboard!
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 Copy linkLink copied to clipboard!
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.
Chapter 2. Red Hat build of OpenJDK 8 for Microsoft Windows installation options Copy linkLink copied to clipboard!
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:
Chapter 3. Installing Red Hat build of OpenJDK 8 for Microsoft Windows with the archive Copy linkLink copied to clipboard!
This procedure describe how to manually install Red Hat build of OpenJDK 8 for Microsoft Windows using the archive.
Procedure
- Download the archive of Red Hat build of OpenJDK 8 for Microsoft Windows.
Extract the contents of the archive to a directory of your choice.
NoteExtracting the contents of the archive to a directory path that does not contain spaces is recommended.
Update the
PATHas below:Add the
bindirectory 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"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 8 for Microsoft Windows is successfully installed, run
java -versioncommand 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)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 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"If the path contains spaces, use the shortened path name.
- Restart Command Prompt to reload the environment variables
Chapter 4. Updating Red Hat build of OpenJDK 8 for Microsoft Windows using the archive Copy linkLink copied to clipboard!
Red Hat build of OpenJDK 8 for Microsoft Windows can be manually update using the archive.
Procedure
- Download the archive of Red Hat build of OpenJDK 8 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.
On Command Prompt, update
JAVA_HOMEenvironment variable as follows:- Open Command Prompt as an administrator.
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"If the path contains spaces, use the shortened path name.
- Restart Command Prompt to reload the environment variables.
Set the value of
PATHvariable if it is not set already:C:\> setx -m PATH "%PATH%;%JAVA_HOME%\bin";- Restart Command Prompt to reload the environment variables.
Verify that
java -versionworks 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)
Chapter 5. Installing Red Hat build of OpenJDK with the MSI installer Copy linkLink copied to clipboard!
This procedure discribes how to install Red Hat build of OpenJDK 8 for Microsoft Windows using the MSI-based installer.
Procedure
- Download the MSI-based installer of Red Hat build of OpenJDK 8 for Microsoft Windows.
- Run the installer Red Hat build of OpenJDK 8 for Microsoft Windows.
-
Click
Nexton the welcome screen. -
Check
I accept the terms in license agreement, then clickNext. -
Click
Next. - Accept the defaults or review the optional properties.
-
Click
Install. -
Click
Yeson theDo you want to allow this app to make changes on your device?. Verify the Red Hat build of OpenJDK 8 for Microsoft Windows is successfully installed, run
java -versioncommand 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)
Chapter 6. Red Hat build of OpenJDK MSI installer components Copy linkLink copied to clipboard!
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- 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- jdk_env_path
-
Appends
<INSTALLDIR>\binand<INSTALLDIR>\jre\binto 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>/missioncontrolto 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>\webstartto the system%PATH%environment variable. - webstart_migrate
- Migrate WebStart local settings and cache on update.
- webstart_plugin
-
Installs
plugin.jarinto<jdk>/jre/lib/for compatibility with third-party applications. Web browser plugin implementation is not included.
Appendix A. MSI-based installer properties Copy linkLink copied to clipboard!
The Red Hat build of OpenJDK for Windows MSI-based installer includes the JDK Files component and the following optional properties:
| Property | Description | Default 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 | No |
Revised on 2024-05-10 09:08:58 UTC