How to Install OpenJDK 11 on Windows 11?

The tutorial will show you how to download and install any version of OpenJDK on any version of Windows.

OpenJDK (Open Java Development Kit) is a free and open-source implementation of the Java Standard Edition (Java SE). It is license under GNU General Public License (GNU GPL or simply GPL).

There are release specific pages of https://jdk.java.net available for OpenJDK binary downloads.

Follow these steps to download and install OpenJDK on Windows:

  1. Go to OpenJDK 11 official download page at https://jdk.java.net/java-se-ri/11 and click on Windows/x64 binary bundle download link as shown in the image below:
  2. After downloading the file, extract and move it to C: drive inside Program Files directory.
  3. Now, its time to set up an environment variable for the JDK.
  4. Type env in the search and click on the Edit the system environment variables shortcut as shown in the image below:
  5. On the System Properties window, click Environment Variables button.
  6. Under System variables, click New.
  7. Enter JAVA_HOME in the Variable name field. Browse and select the JDK installation directory in the Variable value field.
  8. Select Path under System Variables and click on the New button to set path for the JDK and enter %JAVA_HOME%\bin as shown in the image below:
  9. Choose OK button.
  10. Open a command prompt and run java --version command.
  11. The command will print the OpenJDK version that is installed on your computer.