How to Install OpenJDK 11 on Windows?

OpenJDK (Open Java Development Kit) is a free and open-source implementation of the Java Platform, Standard Edition (Java SE).

It allows developers to write and run Java applications on various platforms. In this guide, we will walk you through the step-by-step process of installing OpenJDK 11 on a Windows operating system.

how to install openjdk 11 on windows
How to Install OpenJDK 11 on Windows?

By following these instructions, you’ll be ready to start developing Java applications using OpenJDK 11 in no time.

Checking System Requirements

Before installing OpenJDK 11, ensure that your Windows system meets the following requirements:

  • Operating System: Windows 7, 8, 8.1, or 10 (64-bit)
  • Disk Space: At least 200 MB of free space
  • RAM: Minimum of 2 GB (4 GB recommended)

Downloading OpenJDK 11

To begin the installation process, you’ll need to download the OpenJDK 11 distribution package. Follow these steps:

  1. Visit the official OpenJDK website ( using your preferred web browser.
  2. Scroll down to the “Windows” section and click on the “OpenJDK 11 (LTS)” link.
  3. On the download page, select the appropriate distribution package based on your Windows version and architecture (32-bit or 64-bit).
  4. Click on the download link for the ZIP package to start the download.
  5. Installing OpenJDK 11

Running the Installer

Once the OpenJDK 11 ZIP package has finished downloading, follow these steps to install it on your Windows system:

  1. Extract the contents of the ZIP package to a location of your choice (e.g., C:\openjdk-11).
  2. Open the extracted folder and navigate to the “bin” directory.
  3. Locate the file named “java.exe” and copy its path to the clipboard.
  4. Press the “Windows” key + “R” to open the “Run” dialog box.
  5. Paste the copied path into the “Run” dialog box and press “Enter” to launch the Command Prompt with the path set.

Specifying the Installation Location

During the installation process, you’ll need to specify the location where OpenJDK 11 will be installed. Follow these steps:

  1. In the Command Prompt window, enter the following command to start the installation:
   java -version
  1. The command output will display the Java version information. This confirms that OpenJDK 11 is installed and ready to use.

Selecting Optional Components

During the installation, you may be prompted to select optional components. These components provide additional functionality for Java development. Choose the components based on your requirements and preferences.

Configuring Environment Variables

To make OpenJDK 11 accessible from any command prompt window, you need to configure the system’s environment variables. Follow these steps:

  1. Right-click on the “Computer” or “This PC” icon on your desktop and select “Properties.”
  2. Click on “Advanced system settings” on the left-hand side of the window.
  3. In the “System Properties” window, click on the “Environment Variables” button.
  4. Under the “System Variables” section, click on “New” to add a new environment variable.
  5. Enter the following information:
  • Variable name: JAVA_HOME
  • Variable value: The installation path of OpenJDK 11 (e.g., C:\openjdk-11)
  1. Click “OK” to save the changes.

Verifying the Installation

To verify that OpenJDK 11 is installed correctly, follow these steps:

  1. Open a new Command Prompt window.
  2. Type the following command and press “Enter”:
   java -version
  1. The command output should display the Java version information, confirming that OpenJDK 11 is successfully installed on your Windows system.

Congratulations! You have successfully installed OpenJDK 11 on your Windows system. You can now start developing and running Java applications using this powerful development kit.

Wrapping Up

In this guide, we have covered the step-by-step process of installing OpenJDK 11 on a Windows operating system. By following the instructions provided, you have successfully set up OpenJDK 11, allowing you to start developing Java applications on your Windows machine.

We explored the prerequisites, downloading the distribution package, running the installer, configuring environment variables, and verifying the installation. Now that OpenJDK 11 is installed, you can leverage its features and functionalities to build robust and scalable Java applications. Happy coding!