As of 24 December, 2021, the current version of Java 17 is 17.0.1. We will be installing the OpenJDK version of JDK 17; for Windows and OS X, the specific distribution will be that provided by Amazon Corretto.

System requirements

Before installing, please verify that your system meets or exceeds the requirements for JDK 17, as specified in Oracle JDK 17 Certified System Configurations.

Download and installation

Windows

Download the Windows x64 MSI (installer file) for JDK 17 from Downloads for Amazon Corretto 17 and follow the installation instructions at Amazon Corretto 17 Installation Instructions for Windows 7 or Later.

Important: On the Custom Setup screen, use the Browse button to change the installation directory from its default value to C:\Program Files\Java\ (please be careful to use the precise spelling and casing shown here).

OS X

Download the macOS x64 PKG (package file) for JDK 17 from Downloads for Amazon Corretto 17 and follow the installation instructions at Amazon Corretto 17 Installation Instructions for macOS 10.13 or later.

Linux Ubuntu

Run the following commands, on at a time, in a Terminal window:

sudo apt update

sudo apt install openjdk-17-jre

sudo apt install openjdk-17-jdk

Optional tasks

The official JDK documentation can be accessed from any system with an Internet connection. However, it is highly recommended that you download and install the documentation locally for offline browsing. The documentation ZIP file is located at Java SE Development Kit 17 Documentation. To install, create a bootcamp directory in your user home directory (if it doesn’t already exist), with subdirectories as shown below, and then unzip the contents of the downloaded jdk-17.0.1_doc-all.zip file into the indicated directory. (Please note and follow the spelling and casing of the specified directories.)

  • (User home)

    • bootcamp

      • docs

        • jdk17

          (Extract contents of docs folder in jdk-17.0.1_doc-all.zip here.)