Skip to content

How to Setup JDK 17

JDK 17 is an implementation of the OpenJDK Java development kit (OpenJDK) based on Java 17. While the latest one is now at 21, version 17 so far is the latest LTS version (Long Term Support) of Java, which might be more practical to learn than version 21.

Also, to keep everybody's code compatible with each other, we decided to stick with this version of Java instead of anything else.

How to Download JDK 17

  1. Go to the Archived OpenJDK General-Availability Releases page which lists older and archived versions of OpenJDK-based development kits.
  2. Scroll down to 17 GA (build 17+35) and download the file that corresponds to your operating system.

JDK 17 download area

How to Setup JDK 17 on Windows

  1. Extract the ZIP file into a folder. Preferrably, you'll want to extract this into the Program Files folder. You might need Administrator access for that.
  2. Next, you'll need to set up your system environment variables. Press the Windows key and search for "Edit the system environment variables".

Search for edit the system environment with the Windows search function.

  1. In the window that opens, click on the Environment Variables button.

Press on the Environment Variables button from the System Properties popup.

  1. Let's create an environment variable for your computer account. Under the "User variables for <your username>", click on New.

Make a new environment variable.

  1. Type "JAVA_HOME" in the Variable name textbox.
  2. Copy and paste your Java /bin folder path into the Variable value textbox. Alternatively, you can click on Browser Directory and look for the /bin folder through that.

New user variable.

  1. Click OK.
  2. Next, open the Path variable.

Select the Path variable.

  1. Click on New.

Creating a new path variable value.

  1. Type "%JAVA_HOME%" into the field and click on OK until you're out of the System Properties window.

Adding the %JAVA_HOME% variable's value.

Note: Alternatively, you can skip steps 5 to 7 and paste the /bin folder path on step 10. But it's recommended to follow these step by step.

  1. Your JDK should now be installed and ready for use from anywhere! To test it out, try using the java -version command on Command Prompt.

Command Prompt.

Once you've got JDK 17 set up on your computer, you're ready to make new projects on Intellij IDEA!