This guide explains how to install the Java 17 JDK+FX Azul distribution on macOS using SDKMAN.
Why this specific version of JDK?
Why SDKMAN? SDKMAN simplifies the process of installing, switching between, and managing multiple versions of on Unix-based systems.
Install SDKMAN if you don't have it already.
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk version
Install JDK using SDKMAN
sdk install java 17.0.11.fx-zulu
sdk default java 17.0.11.fx-zulu
If your installation terminated prematurely (e.g., due to a network connectivity issue), it can result in an incomplete installation that will get in the way of future re-installations (i.e., sdk install
command will give the error HTTP server doesn't seem to support byte ranges. Cannot resume.
).
Remedy: Run the sdk flush
command to purge the previous incomplete installation.
Verify installation by running the following command. You should see the version information for Java 17.0.11.fx-zulu.
java -version
If you encountered issues while following the above instructions, you can also watch the video below for a more visual explanation (note that the JDK version it uses is not the one we want -- so, adapt accordingly).
If you have multiple versions of Java installed, you can switch between them using SDKMAN.
sdk current java
sdk use java
Then press the Tab key to see the available versions installed on your computer. Keep pressing the same key until you select the desired version, and hit Enter.sdk install java <version>
sdk default java <version>
Authors: