(Last updated March 21, 2024)
Having trouble? email Jonathan Sanders (jsanders@cs.washington.edu) for help.

Downloading OpenJDK

Visit the following page:

Installing the JDK

Windows

Locate the dark blue button that says "Latest LTS Release" and click it to begin downloading the installer.

NOTE: Adoptium.net will attempt to autodetect your operating system and whether you are using a 64 bit or 32 bit system in order to give you the appropriate installer. In most cases, you should receive the correct installer by simply clicking "Latest LTS Release" as described above. If the installer you receive does not work on your system, you may need to click the "Other platforms and versions" button and then select your specific platform manually.

When the download is finished, open the installer and click "Next" to proceed through the installation wizard. The default settings are reasonable for most users, and you can complete the installation by repeatedly clicking "Next".

When you reach the end of the installation wizard, you will see a message saying "Completed..." Click Finish to close the wizard.

At this point, OpenJDK should be installed. If you‘d like, you can confirm this by holding down the Windows key and pressing R, and typing cmd /K java -version into the window that opens.

Press OK. If you see a message that looks like this:

openjdk version "21.0.2" 2024-01-16 LTS
OpenJDK Runtime Environment Temurin-21.0.1+13 (build 21.0.2+13-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (build 21.0.2+13-LTS, mixed mode, sharing)

then you‘re done! However, if you see something like:

'java' is not recognized as an internal or external command,
operable program or batch file.

then the installation has failed. You may need to visit Adoptium's "Other platforms and versions" and download the installer for your specific platform manually.

Having trouble? email Jonathan Sanders (jsanders@cs.washington.edu) for help.

macOS

Locate the dark blue button that says "Latest LTS Release" and click it to begin downloading the installer.

NOTE: Adoptium.net will attempt to autodetect your operating system and whether you are using a Mac with M1/M2 chip in order to give you the appropriate installer. In most cases, you should receive the correct installer by simply clicking "Latest LTS Release" as described above. If the installer you receive does not work on your system, you may need to click the "Other platforms and versions" button and then select your specific platform manually. For older macOS systems you want the x64 installer, but for newer systems using an M1/M2 chip you want the macOS aarch64 installer.

Double-click the .pkg that was downloaded. An installation wizard will open:

The default settings are reasonable for most users, and you can complete the installation by repeatedly clicking "Continue".

At this point, the JDK should be installed. If you‘d like, you can confirm this by opening Terminal (Press Cmd+Space, type "Terminal", press Enter), typing java -version, and pressing Enter. If you see a message that looks like this:

openjdk version "21.0.2" 2024-01-16 LTS
OpenJDK Runtime Environment Temurin-21.0.1+13 (build 21.0.2+13-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (build 21.0.2+13-LTS, mixed mode, sharing)

then you‘re done! However, if you see something like:

-bash: java: command not found

then the installation has failed.

Having trouble? email Jonathan Sanders (jsanders@cs.washington.edu) for help.