Working with SDKMAN!

SDKMAN! Image


SDKMAN! is a tool for managing
parallel versions of multiple Software Development Kits. Read more at https://sdkman.io/

To install SDKMAN! open your favourite Terminal and run the following command:
curl -s "https://get.sdkman.io" | bash

If you are using fish-shell, you need to install an SDKMAN! plugin
fisher add reitzig/sdkman-for-fish

Now you can install any SDK you need.

Listing available SDKs

sdk list

Installing JDK 8.0.191-oracle

%$ sdk list java
================================================================================
Available Java Versions
================================================================================
     12.ea.20-open
     11.0.1-zulu
     11.0.1-open
     10.0.2-zulu
     10.0.2-open
     9.0.7-zulu
     9.0.4-open
     8.0.192-zulu
     8.0.191-oracle
     7.0.181-zulu
     1.0.0-rc-10-grl
     1.0.0-rc-9-grl
     1.0.0-rc-8-grl



================================================================================
+ - local version
* - installed
> - currently in use
================================================================================

%$ sdk install java 8.0.191-oracle
Downloading: java 8.0.191-oracle

In progress...

######################################################################## 100,0%

Repackaging Java 8.0.191-oracle...

Done repackaging...
Cleaning up residual files...

Installing: java 8.0.191-oracle
Done installing!

%$ sdk list java
================================================================================
Available Java Versions
================================================================================
     12.ea.20-open
     11.0.1-zulu
     11.0.1-open
     10.0.2-zulu
     10.0.2-open
     9.0.7-zulu
     9.0.4-open
     8.0.192-zulu
 > * 8.0.191-oracle
     7.0.181-zulu
     1.0.0-rc-10-grl
     1.0.0-rc-9-grl
     1.0.0-rc-8-grl



================================================================================
+ - local version
* - installed
> - currently in use
================================================================================

Installing JDK 10.0.2-open

%$ sdk list java
================================================================================
Available Java Versions
================================================================================
     12.ea.20-open
     11.0.1-zulu
     11.0.1-open
     10.0.2-zulu
     10.0.2-open
     9.0.7-zulu
     9.0.4-open
     8.0.192-zulu
 > * 8.0.191-oracle
     7.0.181-zulu
     1.0.0-rc-10-grl
     1.0.0-rc-9-grl
     1.0.0-rc-8-grl



================================================================================
+ - local version
* - installed
> - currently in use
================================================================================

%$ sdk install java 10.0.2-open

Downloading: java 10.0.2-open

In progress...

######################################################################## 100,0%

Repackaging Java 10.0.2-open...

Done repackaging...
Cleaning up residual files...

Installing: java 10.0.2-open
Done installing!

Do you want java 10.0.2-open to be set as default? (Y/n): n

%$ sdk l java
================================================================================
Available Java Versions
================================================================================
     12.ea.20-open
     11.0.1-zulu
     11.0.1-open
     10.0.2-zulu
   * 10.0.2-open
     9.0.7-zulu
     9.0.4-open
     8.0.192-zulu
 > * 8.0.191-oracle
     7.0.181-zulu
     1.0.0-rc-10-grl
     1.0.0-rc-9-grl
     1.0.0-rc-8-grl



================================================================================
+ - local version
* - installed
> - currently in use
================================================================================

Switching between JDK versions

%$ sdk use java 10.0.2-open

Using java version 10.0.2-open in this shell.

Set default JDK version

%$ sdk default java 10.0.2-open

Default java version set to 10.0.2-open


Comments