Java

Install JVM tools and frameworks via SDKMan

SDKMan

Go to terminal and run:

curl -s "https://get.sdkman.io" | zsh

Note: this is a known issue which causes installation fail. the temp workaround is:

curl -s "https://get.sdkman.io" | bash

Then execute contents in file via:

source "$HOME/.sdkman/bin/sdkman-init.sh"

Verify the installation went well

sdk version

SDKman Packages Installation

To get a list of current or candidate versions for gradle:

sdk list java

To install the following software, go to terminal and run:

# if you want to manage java version with `sdkman`
# java  `21-graal` is current long-term support (LTS). 
# pick latest LTS version at the time of installation.
sdk install java 21-graal
java --version # verify

sdk install gradle
sdk install maven
gradle --version # verify
mvn --version # verify
sdk install kotlin

# optional
sdk install quarkus
sdk install springboot
sdk install scala

# spark (optional)
# install `spark-shell`, `spark-submit` cli
sdk install spark

TODO: Add graalVM when M1 support is releases

When you prompted to set the newly installed software as default enter 'Y'

How to use sdkman

To see what is outdated for all Candidates

sdk upgrade

To remove old version e.g., gradle 8.4:

sdk uninstall gradle 8.4

Last updated