How to install JDK on Windows 11

If you want a manual and flexible way to set up Java, learning how to install JDK on Windows 11 using the ZIP file from jdk.java.net is a great option. This method does not require an installer and works well when you do not have administrator access.

In this guide, you will learn how to download, extract, and configure JDK on Windows using the official OpenJDK ZIP package.

The website java.jdk.net is the official source for OpenJDK builds provided by Oracle. It offers:

  • Free OpenJDK downloads
  • ZIP packages for manual installation
  • Latest stable and early access versions

Using java.jdk.net ensures you get a safe and trusted JDK distribution. Now let’s get started to know how to install jdk on Windows 11.

Step 1: Download JDK ZIP for Windows 11

To start installing JDK using ZIP, follow these steps:

  1. Open your browser
  2. Go to: https://jdk.java.net
  3. Select the JDK version you want (for example, JDK 25)
  4. Scroll to the Windows section
  5. Download the Windows x64 ZIP file
How to install jdk in window 11: Download JDK from jdk.java.net
How to install jdk in window 11: Download JDK from jdk.java.net

Step 2: Extract the ZIP File

After downloading the JDK ZIP file:

  1. Go to the download folder
  2. Right-click the ZIP file
  3. Click Extract All
  4. Choose a location such as:
    • C:\Java\
  5. After extraction, you will see a folder like:
    • C:\Java\jdk-25

This folder is your JDK installation directory.

Step 3: Set JAVA_HOME for JDK Installation

When you install JDK using a ZIP file, you must manually configure environment variables.

  1. Search for Environment Variables in Windows
  2. Open Edit the system environment variables
  3. Click Environment Variables
  4. Under System variables, click New
    • Enter:
      • Variable Name: JAVA_HOME
      • Variable Value: JDK folder path
    • Click OK
How to install jdk on windows 11. Setting JAVA_HOME variable.
Environment Variable setup in Windows 11 for Java JDK

Step 4: Add JDK bin to PATH

To run Java commands from any directory:

  1. In System variables, select Path
  2. Click Edit
  3. Click New
  4. Add:
    • %JAVA_HOME%\bin
  5. Click OK on all windows.
Environment Variable Path value with the new Java JDK path in the value

Step 5: Verify JDK Installation on Windows

Now verify that JDK is installed correctly.

  1. Open Command Prompt
  2. Run:
    • java -version
  3. Also Run:
    • javac -version

Note: If your terminal/command prompt is already running, make sure to close it and run again.

If both commands work, the JDK installation using ZIP is successful.

Common Errors When Installing JDK Using ZIP

Error: java is not recognized as an internal or external command

This usually means:

  • JAVA_HOME is not set correctly
  • PATH does not include %JAVA_HOME%\bin
  • Command Prompt was not restarted

Fix:

  • Recheck environment variables
  • Restart Command Prompt
  • Ensure there are no extra spaces in paths

Now you know how to install JDK on Windows 11.

Also, read the new Java features in Java 25.

Subscribe to my newsletter today!

Share it on