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.

🌐
OpenJDK
openjdk.org › install
OpenJDK: Download and install
The java-1.7.0-openjdk package contains just the Java Runtime Environment. If you want to develop Java programs then install the java-1.7.0-openjdk-devel package.
Discussions

How do you manually install java openjdk?
Did you try follow the instructions? https://openjdk.org/install/ Then you have a folder with all the stuff you need. Now you need to tell your OS how to find the binaries and libraries. For that you need to tell us your OS (Debian, Ubuntu, Arch, Fedora, ...). More on reddit.com
🌐 r/linuxadmin
18
0
November 6, 2024
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
Installing Java 11 for the MOOC Java
For runtime this is perfect. For development though, you can use sdkman and nvm (for nodejs) to install and switch between different run time versions. I usually have a container image ready with these (and other tools - git, maven.,etc) installed and ready to go. Using these premade containers with VSCode remote containers extension really brings down the start up time of any project you may start. Something like this to get you started - FROM debian:stable-slim RUN apt-get update \ && apt-get upgrade -y \ && DEBIAN_FRONTEND=noninteractive apt-get install -y unzip zip git wget maven nano curl RUN curl -s "https://get.sdkman.io" | bash \ && /bin/bash -c "source /root/.sdkman/bin/sdkman-init.sh \ && sdk install java" RUN git config --global user.name \ && git config --global user.email \ && git config --global core.editor "code --wait" \ && git config --global core.autocrlf input RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* CMD ["/bin/bash"] remember to replace the git identity in the dockerfile before using it. And it installs current java lts (v17). If you want something else, use the correct package name in the sdk install command More on reddit.com
🌐 r/debian
3
4
July 12, 2023
Cant Update Software openjdk-11-jre
Seems like it's some apt weirdness... I don't use debian-based distros on a regular basis, so I don't know much about apt, but here's what I'd do: First, remove all broken packages sudo apt --fix-broken install If this worked, update the system sudo apt update && sudo apt upgrade Now try again to install java: sudo apt install openjdk-11-jre And see what happens What I suspect caused the issue is that you tried installing openjdk without first updating your system, which made apt confused somehow... More on reddit.com
🌐 r/linuxquestions
5
2
May 25, 2022
🌐
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
🌐
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.
🌐
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.
🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_build_of_openjdk › 11 › html-single › installing_and_using_red_hat_build_of_openjdk_11_on_rhel › index
Installing and using Red Hat build of OpenJDK 11 on RHEL | Red Hat build of OpenJDK | 11 | Red Hat Documentation
Create a generic path by using symbolic links to your JRE for easier upgrades: $ ln -s ~/jres/java-11-openjdk-11.0.14.0.9-3.portable.jre.el.x86_64 ~/jres/java-11 ... When installed using this method, Java will only be available for the current user.
Find elsewhere
🌐
GitHub
gist.github.com › douglarek › bbda8cc23a562cb5d5798717d57bc9e9
How to install openJDK 11 on macOS - Gist - GitHub
Using mac os Big sur, I had to add the environment variable export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home" in my ~/.zshrc file for it to work
🌐
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 - Learn to install Java 11 (OpenJDK 11) on Windows 64-bit. Quick guide for downloading & installing OpenJDK 11 on Windows 10.
🌐
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
Because of the enormity of this ... message. Red Hat build of OpenJDK 11 for Microsoft Windows can be installed using an archive or through a graphical user interface using an MSI-based installer....
🌐
Liquid Web
liquidweb.com › home › help docs › server administration › linux server administration › installing and verifying openjdk 11
How to Install OpenJDK 11 and Configure with Java | Liquid Web
December 15, 2025 - To install this version, run the following command. [root@host2 ~]# dnf install java-11-openjdk-devel.x86_64 Last metadata expiration check: 0:09:28 ago on Fri Aug 21 15:19:11 2020. Dependencies resolved.
🌐
CodeJava
codejava.net › java-se › download-and-install-java-11-openjdk-and-oracle-jdk
Download and Install Java 11 (OpenJDK and Oracle JDK)
Then type the following command to update JAVA_HOME (in Command Prompt with administrator right): setx -m JAVA_HOME "g:\JDK\OpenJDK\jdk-11.0.2"Then open another command prompt and type java –version, you will see:That means you have successfully setup OpenJDK 11 on your computer.You can also watch the video below:
🌐
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
Version: Select 11 (LTS) from the dropdown (LTS = Long-Term Support, recommended for stability). Operating System: Select Windows. Architecture: Choose x64 (64-bit) unless you have a 32-bit system (select x86 in that case). Package Type: Select ZIP (we want a manual, installer-free setup). JVM: Leave as Hotspot (the default, high-performance JVM). Click the Download button next to your selections. The ZIP file (e.g., OpenJDK11U-jdk_x64_windows_hotspot_11.0.20_8.zip) will start downloading.
🌐
LinuxCapable
linuxcapable.com › home › ubuntu › how to install openjdk 11 on ubuntu 26.04, 24.04 and 22.04
How to Install OpenJDK 11 on Ubuntu 26.04, 24.04 and 22.04 - LinuxCapable
April 28, 2026 - Install OpenJDK 11 on Ubuntu 26.04, 24.04 and 22.04. Covers JRE and JDK packages, version switching, JAVA_HOME setup, and removal commands. Last updatedTuesday, April 28, 2026AuthorJoshua JamesRead time4 minGuide typeUbuntu ... Java 11 still anchors older enterprise applications, Spring Boot 2.x services, CI runners, and vendor-certified stacks that are not ready for newer LTS releases. To install OpenJDK 11 on Ubuntu, use Ubuntu’s APT packages rather than managing a manual tarball or vendor archive yourself.
🌐
Linode
linode.com › docs › guides › how-to-install-openjdk-on-ubuntu-18-04
Install OpenJDK 11 (Java Development Kit) on Ubuntu 18.04 | Linode Docs
March 25, 2020 - This guide will show you how to install the Open Java Development Kit (OpenJDK) 11 on Ubuntu 18.04 and test it by through a simple "Hello World" application.
🌐
freeCodeCamp
freecodecamp.org › news › install-openjdk-free-java-multi-os-guide
How to Install OpenJDK (Free Java) – Multi OS Guide
September 19, 2022 - They might even offer their own installer file. 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 ...
🌐
Siemens
docs.plm.automation.siemens.com › content › polarion › 19.1 › help › en_US › polarion_windows_installation › before_installation › install_openjdk_11.html
Polarion Windows Installation
Install OpenJDK 11 · Install Polarion · Windows installer · Overview · What the installer can install · Disable firewall · Choose an installation type · Standard (production) installation · Services and license key · Polarion components installed · Installation on Windows 10 ·
🌐
Betweenborders
betweenborders.com › install-openjdk-jre-11 › install-openjdk-11
Install OpenJDK 11 - Installing OpenJDK 11
Download Microsoft's OpenJDK 11.0.21 .../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....
🌐
Ralph's Open Source Blog
ralph.blog.imixs.com › 2024 › 01 › 24 › install-open-jdk-11-on-debian-12-bookworm
Install Open JDK 11 on Debian 12 (Bookworm) - Ralph's Open Source Blog
January 24, 2024 - $ sudo apt update $ sudo apt install openjdk-11-jdk $ sudo update-alternatives --config java · The last command allows you to switch between JDK 17 and JDK 11.