Using SDKMAN on Mac

1 min read ⚡️🌿 BuddingLast Updated: 04 Nov 2021

What is SDKMAN?

SDKMAN is a tool to manage multiple Software Development Kits in parallel on most Unix-based systems. It includes an easy-to-use Command Line Interface (CLI) and API for installing, switching, removing, and listing Candidates. Having used it on Mac machine to develop and maintain microservices written in different versions of Java, I am amazed by the ease of switching JDKs on the fly.

I love it so much that I wanted to replicate the same process in a Windows machine too.


Since SDKMAN is built for unix systems, installation and using on a mac is smooth as butter.

  1. Install Homebrew
  2. Install SDKMAN
curl -s "" | bash

source "$HOME/.sdkman/bin/"

Install SDK


  • Install my commonly used JDK versions
sdk install java 8.0.302-open

sdk install java 11.0.2-open

sdk install java 17.0.1-open


  • Install my commonly used Gradle versions
sdk install gradle 4.2.1

sdk install gradle 6.9.1


  • Install maven
sdk install maven

Alternatives and Other Programming Languages

SDKMAN can cover most of your needs if you are solely working with Java, or related languages like Kotlin. Alternatively, you can also try jenv. For other programming languages, check out this awesome list of version managers.

It makes my day when I see it.
Using SDKMAN on WindowsHow to add Git Bash to Windows Terminal
Walter Teng © 2021