How to Install Java (JDK) on Windows 11

Installing the Java Development Kit (JDK) on your Windows 11 computer is a straightforward process. Follow these steps to download and install the JDK:

Step 1: Open Google Chrome

  1. Click on the Start menu (Windows icon) at the bottom-left corner of your screen.
  2. Type "Google Chrome" in the search bar.
  3. Click on Google Chrome to open the browser.

Step 2: Go to the Oracle JDK Download Page

  1. In Google Chrome, go to the address bar at the top of the browser window.
  2. Type (or the URL for the latest version) and press Enter.

Step 3: Download JDK Installer

  1. On the Oracle JDK download page, find the section for Windows.
  2. Click on the .exe file link to download the installer.
  3. You may need to accept the Oracle license agreement before downloading. If prompted, click Save to save the installation file to your computer.

Step 4: Run the Installer

  1. Once the download is complete, click on the jdk-[version]-windows-x64.exe file at the bottom of the Google Chrome browser window. If you don’t see it, you can find it in your Downloads folder.
  2. If a User Account Control prompt appears asking if you want to allow this app to make changes to your device, click Yes.

Step 5: Install JDK

  1. The JDK installer will open. Click Next on the welcome screen.
  2. Choose the destination folder for the JDK installation and click Next.
  3. The installation process will begin. This may take a few minutes.
  4. Once the installation is complete, click Close.

Step 6: Set Up Environment Variables

  1. Open the Start menu and type "environment variables" in the search bar.
  2. Click on Edit the system environment variables.
  3. In the System Properties window, click on the Environment Variables button.
  4. Under System variables, scroll down and find the Path variable. Select it and click Edit.
  5. Click New and add the path to the JDK bin directory (e.g., C:\Program Files\Java\jdk-[version]\bin). Click OK to save the changes.
  6. Also, create a new system variable named JAVA_HOME and set its value to the JDK installation directory (e.g., C:\Program Files\Java\jdk-[version]). Click OK to save the changes.

Step 7: Verify the Installation

  1. Open the Start menu and type "cmd" in the search bar.
  2. Click on Command Prompt to open it.
  3. In the Command Prompt window, type java -version and press Enter. You should see the version of the Java runtime environment.
  4. Also, type javac -version and press Enter to verify the Java compiler version.


You have successfully installed the Java Development Kit (JDK) on your Windows 11 computer. You can now start developing Java applications using the JDK and its tools.