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
🌐
Oracle
java.com › en › download › help › windows_manual_download.html
How do I manually download and install Java for my Windows computer?
Platform(s): Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows 11 · Java version(s): 8.0 · The procedure to install Java broadly consists of: Download and Install · Test Installation · » Windows System Requirements · Note: Installing Java requires that you can gain administrator access to Windows on your computer. It is recommended, before you proceed with online installation you may want to disable your Internet firewall.
🌐
Windows Report
windowsreport.com › windows 11 › how to › install java on windows 11
How to Install Java on Windows 11 (Step-by-Step Guide)
July 18, 2025 - ... Open any browser, navigate to the Java download page for Windows, and locate and download the installer. Once the download is complete, launch the setup and click Yes in the UAC prompt.
Discussions

java 11 - How to install OpenJDK 11 on Windows? - Stack Overflow
Register an uninstaller with Windows. As of Java 11, the Oracle's free version of Java (Oracle OpenJDK) doesn't seem to include an installer. More on stackoverflow.com
🌐 stackoverflow.com
How to install java on windows 11 as a non programmer?
Please ensure that: Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions You include any and all error messages in full - best also formatted as code block You ask clear questions You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions. If any of the above points is not met, your post can and will be removed without further warning. Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png ) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc. Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit. Code blocks look like this: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } } You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above. If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures. To potential helpers Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/learnjava
5
6
July 31, 2024
How to I install the latest version of JDK?
In image 3 you have multiple paths still pointing to JDK 11... windows is picking the first java.exe it comes across (which is in the JDK11 folders) You need to remove the Eclipse Adoptium and Microsoft\jdk-11.0.12.7-hotspot environment variables Ensure the same thing hasn't happened in the user specific PATH variable - you only showed us the system PATH variable ALSO (important) remove the Common Files\Oracle\Java\javapath environment variable. Oracle does some crappy workaround to try and point you to the "latest" of their JDKs by installing shortcuts in that folder - get rid of it, you don't need those as it only adds to the confusion and causes issues similar to the above. Restart after this and try again - if it's still not working then post updated screenshots Basically you should ONLY be pointing to 1 folder with java.exe if you want "java -version" to run that specific version on the command line You can also technically run: C:\Program Files\Java\jdk-20\bin\java.exe -version and this will output the desired version number. But if you want to be able to run just "java -version" then you have to do the above steps. As others have noted Java isn't really "installed" - it's just about telling programs where the exe is. Most IDEs like IntelliJ will let you specify the path without relying on the environment variables or they may also come with a built-in Java version, it really depends on how you want things to be configured. More on reddit.com
🌐 r/javahelp
29
3
June 24, 2023
Can't install Java
How did you install it? Where did you download it from? What platform are you on? Can't ask for help without providing any information whatsoever. More on reddit.com
🌐 r/javahelp
6
0
October 6, 2023
People also ask

Where is Java installed?
The default location for the Java installation is C:\Program Files\Java
🌐
itechtics.com
itechtics.com › microsoft › windows › windows 11 › how to install java on windows 11
How To Install Java On Windows 11
How to install Java without signing in to Oracle?
You can head directly to the Oracle download page on the following link and download Java without having to sign in:
https://www.oracle.com/java/technologies/downloads/
🌐
itechtics.com
itechtics.com › microsoft › windows › windows 11 › how to install java on windows 11
How To Install Java On Windows 11
🌐
Medium
medium.com › @MadhavPrajapati › how-to-install-the-java-in-windows-11-ab0e9d0dc96
How to Install the Java in Windows 11? | by Madhav Prajapati | Medium
March 30, 2023 - As soon as the download completes, launch the installation file and click on Yes. ... 4. On the next screen, you’ll be asked for the location of your file. Note the destination folder because we need it when configuring environment variables. .and then Click on Next. ... Note:- If you are unable to see the expected output that shows above, then you need to set up your environmental variable in your Windows 11 · 8. Java is installed correctly.
🌐
IONOS
ionos.com › digital guide › server › configuration › install java windows 11
How to install Java in Windows 11 step by step
November 15, 2022 - Install Java in Windows 11 as a user by following these steps: Step 1: Go to the Oracle Cor­po­ra­tion download page using your system’s default browser: java.com.
🌐
Solve Your Tech
solveyourtech.com › home › programs › how to install java on windows 11: step-by-step guide for beginners
How to Install Java on Windows 11: Step-by-Step Guide for Beginners
August 28, 2024 - You’ll need to download the Java Development Kit (JDK) from the official Oracle website, run the installer, and set up the environment variables. Follow these steps, and you’ll have Java up and running on your Windows 11 machine in no time.
🌐
Solve Your Tech
solveyourtech.com › home › programs › how to install java in windows 11: a step-by-step guide
How to Install Java in Windows 11: A Step-by-Step Guide
November 20, 2025 - It is much easier than it looks at first glance. You need to visit the Oracle website to find the latest version of the Java Development Kit. Look for the section labeled Windows since you are using a PC.
Find elsewhere
🌐
Windows 11 Community
windows11.dev › ce7in › java-55a9
How to Install Java on Windows 11? - Windows 11 Community
August 1, 2022 - We've downloaded it from Oracle's website. ... Yes, it is safe. ... Open Command Prompt, then type java -version and javac -version commands, respectively. ... If you have enough free disk space, you shouldn't remove it.
🌐
Coderanch
coderanch.com › t › 791466 › java › Downloading-Installing-Java-Windows
Downloading and Installing Java on Windows 11 (Beginning Java forum at Coderanch)
At the moment, I have downloaded the Java Runtime Environment - jre1.8.0_461, but would value any help as to how to download the most up to date Java Development Kit and how to change environment variables so that simple Java commands such as Javac and Java actually work when attempting to compile and run a Java class. I am running Windows 11 Pro ... You can't use a JRE; you have to use a JDK. In fact the JRE ceased to be available separately about ten years ago.
🌐
Itechtics
itechtics.com › microsoft › windows › windows 11 › how to install java on windows 11
How To Install Java On Windows 11
August 30, 2022 - Follow the steps below to install the latest version of Java on Windows 11: Open the Java downloads page for Windows and click on the download link for x64 Installer. A JDK file will now begin to download (which includes JRE).
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.

🌐
GeekChamp
geekchamp.com › home › how to install java in windows 11: a step-by-step installation guide
How to Install Java in Windows 11: A Step-by-Step Installation Guide - GeekChamp
May 16, 2026 - Install Java on Windows 11 effortlessly with our step-by-step guide. Learn to set up JDK, configure environment variables, and troubleshoot common installation errors for seamless development.
🌐
The Geek Page
thegeekpage.com › install-java-in-windows-11
How to Install Java in Windows 11 - The Geek Page
December 21, 2023 - ... Then, Click on the below link to open the Java Oracle page. https://www.oracle.com/in/java/technologies/downloads/ Step 2: Scroll down and Click Windows and then Download Java · Step 3: Once the installer file gets downloaded .
🌐
Reddit
reddit.com › r/learnjava › how to install java on windows 11 as a non programmer?
r/learnjava on Reddit: How to install java on windows 11 as a non programmer?
July 31, 2024 -

Hi! I want to install a magic the gathering program, and it needs java to run. They provide a short guide on what versions it works with, but I tried to get the openjdk one, and I still don't know how to install it.

This is the short guide https://github.com/Card-Forge/forge/wiki/User-Guide#java-requirement

Could anyone tell me which one should I get, and how to install it?

Sorry to post this here, tried asking for help on the program's discord, but I got no answers.

🌐
javaspring
javaspring.net › blog › how-to-install-java-on-windows-11
Installing Java on Windows 11: A Comprehensive Guide — javaspring.net
Choose the Windows x64 Installer for Windows 11 machines. Locate the Downloaded File: Navigate to the folder where you downloaded the Java installer (usually the Downloads folder).
🌐
TheServerSide
theserverside.com › blog › Coffee-Talk-Java-News-Stories-and-Opinions › How-do-I-install-Java-on-Windows
How do I install Java on Windows?
The JDK also includes a number of programming tools, like a compiler and a Java web server, for programmers who need to install Java on Windows. The following prerequisites must be met to download and install Java on Windows: You use an updated Windows 10 or Windows 11 operating system (OS);
🌐
YouTube
youtube.com › watch
How To Download & Install Java On Windows 11 | Step By Step - YouTube
Today, you will successfully learn how to download and install the latest version of Java on your Windows 11 PC. Downloading Java on Windows 11 enables you t...
Published   March 25, 2026
🌐
Windows Forum
windowsforum.com › forums › windows help and support forums › windows news
How to Install Java on Windows 11: Safe JDK Choices and Best Practices | Windows Forum
November 9, 2025 - Tools say JAVA_HOME invalid: confirm the JAVA_HOME path is the JDK root, not the bin folder (e.g., C:\Program Files\Java\jdk‑21). Want automatic updates and easy installs: use winget or your configuration management tooling to deploy and keep Java up to date. This guide builds on a practical MSPowerUser primer but adds versioning, vendor choice, verification, package‑manager options, and troubleshooting so that Windows 11 users—from beginners to administrators—can confidently download, install, and maintain Java on their systems.
🌐
Java With Us
javawithus.com › home › faq › how to install java on windows 11
How to Install Java on Windows 11 | Java With Us
April 21, 2026 - Installing Java on Windows 11 is identical to Windows 10. The recommended approach in 2026 is either the Temurin MSI installer or a single winget command.
🌐
Oracle
java.com › en › download › help › download_options.html
How do I install Java ?
There are a couple ways by which you can get Java for Windows ... Manual installation downloads an IFTW (Install From The Web) executable program file and requires minimum user intervention. When you run this program, it fetches all the required files from the web, so you must remain connected to the Internet during the installation.
🌐
GeeksforGeeks
geeksforgeeks.org › linux-unix › download-install-java-windows-linux-macos
Installing Java on Windows, Linux, and macOS - GeeksforGeeks
April 20, 2026 - After successfully downloading JDK 23, now we need to install the Java on our Windows System. Step 3: Go to Downloads and double-click on that downloaded jdk-23_windows-x64_bin.exe file.