Chapter 2. Installing Eclipse Temurin by using an archive
You can manually install Eclipse Temurin from the Red Hat Customer Portal by using an archive file.
Procedure
- From the Red Hat Customer Portal, download the JDK or JRE archive that corresponds to OpenJDK 25 for Windows.
Extract the contents of the archive file to a folder of your choice.
NoteExtract the contents of the archive to a folder path that does not contain spaces.
Update the
PATHas below:Add the
binfolder contained in your OpenJDK installation path to the%PATH%environment variable:C:\> setx /m PATH "%PATH%;C:\Progra~1\RedHat\java-25-openjdk-<version>\bin"If the path contains spaces, use the shortened path name.
- Restart the command prompt to reload the environment variables.
-
To verify that OpenJDK is successfully installed, run the
java -versioncommand at the command prompt. The
%JAVA_HOME%environment variable must also be set to use some developer tools. Set the%JAVA_HOME%environment variable as follows:- Open the command prompt as an administrator.
Set the value of the environment variable to your OpenJDK installation path:
C:\> setx /m JAVA_HOME "C:\Progra~1\RedHat\java-21-openjdk-<version>"If the path contains spaces, use the shortened path name.
- Restart the command prompt to reload the environment variables.