What is SDKMAN? Why should Java programmers install SDKMAN?

Tram Ho

What is SDKMan?

SDKMan (Software Development Kit Manager) is a tool used to manage parallel versions of parts developers.

For example, you can install multiple Java versions on your computer. When you want to use which version, you switch to that version. Or if you want to install Java, just run the command of SDKMan, it automatically installs the latest stable Java version or according to the version you specify.

SKDMan provides command line interface (CLI) and APIs for installing, deleting, converting SDK list display.

Features and advantages of SDKMan

  • Make installation easier: you don't need to download, extract and create environment variables
  • Fully support Java development packages: SDKMan can install SDKs for JVM such as Java, Groovy, Scala, Kotlin … Java library managers like Ant, Gradle, Maven … (See the SDKs that SDKMan supports manage here)
  • SKDMan is very light: the SDK is written for the command line interface (bash), only requires to run curl, zip / unzip commands
  • SDKMan can run on all UNIX platforms: Mac OSX, Linux, Cygwin, Solaris and FreeBSD

Some basic commands of SDKMan

List the sdk that SDKMan supports

sdk list

Install software development kit (sdk)

The most stable version of the installation sdk install sdk_name:

For example, if I want to install the latest Java stable version, I will use the command:

sdk install java Or if you want to specify a version, use sdk install sdk_name sdk_version

For example

sdk install scala 2.12.1

Display the list of versions of SDK

Displays the list of versions of an sdk: sdk list sdk_name

For example, I want to see the versions of gradle supporting:

sdk list gradle

Delete SDK

sdk uninstall sdk_name sdk_version For example, I want to delete scala version version 2.11.6

sdk uninstall scala 2.11.6

Convert between SDK versions

sdk default sdk_name sdk_version For example, on my computer I have many scala versions, I want to switch to scala version 2.11.6 as the default version

sdk default scala 2.11.6

Share the news now

Source : viblo.asia