1. Extract the zip file into a folder, e.g. C:\Program Files\Java\ and it will create a jdk-11 folder (where the bin folder is a direct sub-folder). You may need Administrator privileges to extract the zip file to this location.

  2. Set a PATH:

    • Select Control Panel and then System.
    • Click Advanced and then Environment Variables.
    • Add the location of the bin folder of the JDK installation to the PATH variable in System Variables.
    • The following is a typical value for the PATH variable: C:\WINDOWS\system32;C:\WINDOWS;"C:\Program Files\Java\jdk-11\bin"
  3. Set JAVA_HOME:

    • Under System Variables, click New.
    • Enter the variable name as JAVA_HOME.
    • Enter the variable value as the installation path of the JDK (without the bin sub-folder).
    • Click OK.
    • Click Apply Changes.
  4. Configure the JDK in your IDE (e.g. IntelliJ or Eclipse).

You are set.

To see if it worked, open up the Command Prompt and type java -version and see if it prints your newly installed JDK.

If you want to uninstall - just undo the above steps.

Note: You can also point JAVA_HOME to the folder of your JDK installations and then set the PATH variable to %JAVA_HOME%\bin. So when you want to change the JDK you change only the JAVA_HOME variable and leave PATH as it is.

Answer from Lior Bar-On on Stack Overflow
Top answer
1 of 12
611
  1. Extract the zip file into a folder, e.g. C:\Program Files\Java\ and it will create a jdk-11 folder (where the bin folder is a direct sub-folder). You may need Administrator privileges to extract the zip file to this location.

  2. Set a PATH:

    • Select Control Panel and then System.
    • Click Advanced and then Environment Variables.
    • Add the location of the bin folder of the JDK installation to the PATH variable in System Variables.
    • The following is a typical value for the PATH variable: C:\WINDOWS\system32;C:\WINDOWS;"C:\Program Files\Java\jdk-11\bin"
  3. Set JAVA_HOME:

    • Under System Variables, click New.
    • Enter the variable name as JAVA_HOME.
    • Enter the variable value as the installation path of the JDK (without the bin sub-folder).
    • Click OK.
    • Click Apply Changes.
  4. Configure the JDK in your IDE (e.g. IntelliJ or Eclipse).

You are set.

To see if it worked, open up the Command Prompt and type java -version and see if it prints your newly installed JDK.

If you want to uninstall - just undo the above steps.

Note: You can also point JAVA_HOME to the folder of your JDK installations and then set the PATH variable to %JAVA_HOME%\bin. So when you want to change the JDK you change only the JAVA_HOME variable and leave PATH as it is.

2 of 12
282

Eclipse Adoptium

For Java 17 and up, you can use the Eclipse Adoptium website. According to their about section, the Eclipse Adoptium project is the continuation of the original AdoptOpenJDK mission. It currently hosts Java 8, 11 and 16 through 22, offering various installation methods, including .msi installers, which will perform all the things listed in the question (Unpacking, registry keys, PATH variable updating (and JAVA_HOME), uninstaller...).

Earlier, Java 11 was hosted via AdoptOpenJDK. It now redirects to Eclipse Adoptium.

🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_build_of_openjdk › 11 › html-single › installing_and_using_red_hat_build_of_openjdk_11_for_windows › index
Installing and using Red Hat build of OpenJDK 11 for Windows | Red Hat build of OpenJDK | 11 | Red Hat Documentation
This procedure describes how to install Red Hat build of OpenJDK 11 for Microsoft Windows using the MSI-based installer. ... Download the MSI-based installer of Red Hat build of OpenJDK 11 for Microsoft Windows. Run the installer for Red Hat build of OpenJDK 11 for Microsoft Windows.
Discussions

OpenJDK 11 download? I only find Oracle JDK!
Sorry, I'm confused ... I've just tried to find the latest version of the OpenJDK 11. This page https://jdk.java.net/11/ links to the Oracle download… More on reddit.com
🌐 r/java
39
8
May 23, 2019
Heed help Installing OpenJDK-11 on Debian 12
I'm not sure there's a "correct" way, other than a container or a VM, which have their own limitations. I tested adding bullseye (Debian 11) to /etc/apt/sources.list and installing openjdk-11-jdk, and it seems to work. I'm not a Java developer, though, and can't test if it's properly set up. java --version looks right. deb http://deb.debian.org/debian bullseye main There's also a distribution of OpenJDK called "Temurin" that might work. https://adoptium.net/installation/linux/ More on reddit.com
🌐 r/linux4noobs
4
4
June 21, 2023
Problem installing openjdk-11-jdk
What Debian version? Bookworm ships openjdk-17-jdk. 11 was in buster. As to why you're running a v16 JRE, no idea, you likely have some JRE in the path or installed some weird package from outside the Debian repositories. Running which java should at least give you a hint. More on reddit.com
🌐 r/debian
6
1
September 6, 2023
maintenance of the package openjdk-11-jdk

Don't mind me, I'm curious too. I'll report back when my google-fu was successful.

More on reddit.com
🌐 r/debian
9
22
October 10, 2022
🌐
GeeksforGeeks
geeksforgeeks.org › installation guide › how-to-install-openjdk-free-java-in-windows
How to Install OpenJDK on Windows - GeeksforGeeks
May 7, 2026 - Choose the latest version of OpenJDK that matches your requirements. Download the Windows installer (.msi) or ZIP archive for the 64-bit version ... Once download is completed double-click on the downloaded installer file.
🌐
Microsoft Learn
learn.microsoft.com › en-us › java › openjdk › install
Install the Microsoft Build of OpenJDK | Microsoft Learn
... brew install --cask microsoft-openjdk@11 # OR brew install --cask microsoft-openjdk@17 # OR brew install --cask microsoft-openjdk@21 # OR brew install --cask microsoft-openjdk@25
🌐
Techoral
techoral.com › blog › java › how-to-download-and-install-openjdk-11-on-windows.html
Open Jdk - How To Install OpenJDK Java 11 On Windows Real Quick
March 22, 2026 - OpenJDK 7 Download Windows 64 bit OpenJDK 8 Download Windows 64 bit OpenJDK 9 Download Windows 64 bit OpenJDK 10 Download Windows 64 bit OpenJDK 11 Download Windows 64 bit OpenJDK 12 Download Windows 64 bit If you are looking out for earlier OpenJDK versions, go to OpenJDK Archive · Unlike community OpenJDK, Red Hat provides OpenJDK build in executable as well as zipped format for easy installation on windows.
🌐
tutorialpedia
tutorialpedia.org › blog › how-to-install-openjdk-11-on-windows
How to Install OpenJDK 11 on Windows: Step-by-Step Guide for Manual Setup (No Installer Needed) — tutorialpedia.org
For easier switching, use tools ... installation of OpenJDK 11 on Windows is straightforward: download the ZIP, extract it, set JAVA_HOME and PATH, and verify....
🌐
OpenJDK
openjdk.org › install
OpenJDK: Download and install
Oracle's OpenJDK JDK binaries for Windows, macOS, and Linux are available on release-specific pages of jdk.java.net as .tar.gz or .zip archives. As an example, the archives for JDK 13 may be found on jdk.java.net/13 and may be extracted on the command line using ... The openjdk-8-jre package contains just the Java Runtime Environment. If you want to develop Java programs then please install the openjdk-8-jdk package.
Find elsewhere
🌐
CodeJava
codejava.net › java-se › download-and-install-java-11-openjdk-and-oracle-jdk
Download and Install Java 11 (OpenJDK and Oracle JDK)
Oracle JDK 11 comes with installers for Linux (rpm and deb), macOS (dmg), Windows (exe) and archive files (tar.gz and zip).For Windows, I recommend to download the file jdk-11.0.7_windows-x64_bin.exe. Note that you must have an Oracle account to be able to download JDK 11 installer.
🌐
freeCodeCamp
freecodecamp.org › news › install-openjdk-free-java-multi-os-guide
How to Install OpenJDK (Free Java) – Multi OS Guide
September 19, 2022 - But to keep it simple we're using Adopt Open JDK once again. Select your preferred version and JVM ( OpenJDK 11 LTS on HotSpot JVM if you are unsure) and download the compressed JDK.
🌐
Ex Libris
knowledge.exlibrisgroup.com › aleph › knowledge articles
How to Download and Install OpenJDK 11 on Windows 10 PC for Aleph - Ex Libris Knowledge Center
January 3, 2020 - "openjdk-11.0.1_windows-x64_bin.zip": https://download.java.net/java/GA/jdk11/13/GPL/openjdk-11.0.1_windows-x64_bin.zip ... Select the ZIP archive file. Right-click and then click on the Extract All… menu item.
🌐
H2S Media
how2shout.com › home › tutorial › how to install openjdk 11 on windows 11 using command line
How to install OpenJDK 11 on Windows 11 using Command line - H2S Media
January 21, 2024 - Command to install OpenJDK 11 (JAVA 11 development kit or Runtime ) on Windows 11 or 10 using the command prompt or PowerSehll
🌐
Red-hat-openjdk
red-hat-openjdk.github.io › docs › windows › index.html
Using Red Hat OpenJDK 11 on Windows
C:\> setx /m JAVA_HOME "C:\Progra~1\RedHat\java-11-openjdk-11.0.1.13-1" If the path contains spaces, use the shortened path name. Restart Command Prompt to reload the environment variables. The simplest way to install OpenJDK on Microsoft Windows.
🌐
Microsoft Learn
learn.microsoft.com › en-us › java › openjdk › download
Download the Microsoft Build of OpenJDK | Microsoft Learn
April 30, 2026 - This article provides links to download the Microsoft Build of OpenJDK. For instructions on how to install, see the Install page.
🌐
GitHub
gist.github.com › Jagepard › e29923e535988de2c400bb43054070af
How to install OpenJDK 11 on Windows · GitHub
How to install OpenJDK 11 on Windows · This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters ·
🌐
Microsoft
winget.run › pkg › ojdkbuild › openjdk.11.jdk
Download and install OpenJDK 11 with winget
11.0.7.1 · winget install -e --id ojdkbuild.openjdk.11.jdk · Community builds using source code from OpenJDK project · openjdk · GPL 2 with Classpath Exception ·
🌐
Baeldung
baeldung.com › home › java › jvm › install openjdk on windows
Install OpenJDK on Windows | Baeldung
February 28, 2024 - The JAVA_HOME variable should indicate the installation directory of OpenJDK, while the PATH variable should direct to the bin directory of the JDK. In our case, JAVA_HOME will be C:\Program Files\Java\jdk-21.0.2 and PATH will be C:\Program Files\Java\jdk-21.0.2\bin · Finally, we can confirm the installation’s success by running the following command in the command prompt: ... Chocolatey is a popular package manager for Windows that simplifies the installation and management of software packages.
🌐
Lehigh Computer Science
docs.cse.lehigh.edu › java › installing-java-11-win
Installing Java JDK Version 11 on Windows - Lehigh Computer Science Docs
Set up the filters for ‘Windows’, ... clicking on the Start button and type ‘File Explorer’. Launch File Explorer: On the left side of the File Explorer window, locate and click on Downloads....
🌐
Winstall
winstall.app › apps › ojdkbuild.openjdk.11.jdk
Install OpenJDK 11 with WinGet | winstall
April 15, 2026 - Install OpenJDK 11 via WinGet. Copy the winget install command instantly. Community builds using source code from OpenJDK project
🌐
OpenJDK
openjdk.org
OpenJDK
Learn about the key active Projects in the Community including Amber (high-productivity language features), Babylon (foreign programming models), Leyden (better startup and warmup), Loom (lightweight concurrency), Panama (foreign functions and foreign data), Valhalla (primitive types and ...
🌐
Betweenborders
betweenborders.com › install-openjdk-jre-11 › install-openjdk-11
Install OpenJDK 11 - Installing OpenJDK 11
Download Microsoft's OpenJDK 11.0.21 LTS installer for Windows from Download the Microsoft Build of OpenJDK · Invoke-WebRequest https://aka.ms/download-jdk/microsoft-jdk-11.0.21-windows-x64.msi -OutFile microsoft-jdk-11.0.21-windows-x64.msi · Launch the downloaded installer and follow the on-screen steps...