DEV Community

Cover image for SDKMAN! The Software Development Kit Manager
Sourav Dhiman
Sourav Dhiman

Posted on

SDKMAN! The Software Development Kit Manager

Introduction

SDKMAN.io, short for Software Development Kit Manager, is a command-line tool designed to simplify the installation, management, and use of various java based SDK tools and services easily. Originally focused on the Java ecosystem, SDKMAN.io has expanded its support to include languages such as Kotlin, Scala, Groovy, and more.

Benefits of SDKMAN:

  • Increases Productivity
  • Faster and Easier to maintain different versions.
  • Changes the version of your home server rather than changing the version of all other users in a global server working together.
  • Automates managing and switching between different versions.
  • You control what you own and don't disturb others on a global server.

Installation

Launch a terminal and type in:

$ curl -s "https://get.sdkman.io" | bash
Enter fullscreen mode Exit fullscreen mode

After installation, Open a new terminal and type in:

$ source "$HOME/.sdkman/bin/sdkman-init.sh"
Enter fullscreen mode Exit fullscreen mode

Lastly, you can run the following to confirm the installation:

$ sdk version
Enter fullscreen mode Exit fullscreen mode

Using SDKMAN

SDKMAN will allow you to install a lot of different programs.

Listing all options to install

$ sdk ls
Enter fullscreen mode Exit fullscreen mode

Installing Java

$ sdk install java
Enter fullscreen mode Exit fullscreen mode

Find a specific version:

$ sdk ls java
Enter fullscreen mode Exit fullscreen mode

Install a specific version based on the identifier from the list:

$ sdk install java 11.0.12-open
Enter fullscreen mode Exit fullscreen mode

Using a specific version:

$ sdk use java 11.0.12-open
Enter fullscreen mode Exit fullscreen mode

Default a specific version:

$ sdk default java 11.0.12-open
Enter fullscreen mode Exit fullscreen mode

To update SDKMAN:

$ sdk update
Enter fullscreen mode Exit fullscreen mode

NOTE All of the above commands will work for the other programs available such as:

  • gradle
  • maven
  • groovy
  • kotlin
  • spark
  • springboot

Getting help

$ sdk help
Enter fullscreen mode Exit fullscreen mode

Conclusion

In a nutshell, SDKMAN.io is a game-changer for developers. It makes handling different programming languages a breeze, saves time, and ensures a smooth experience across various operating systems. Whether you're a seasoned pro or a beginner, incorporating SDKMAN.io into your toolbox can make your development journey much simpler. So, dive in, explore SDKMAN.io, and enjoy a hassle-free way to manage your software development kits

Top comments (0)