sdkman
SDKMAN! is a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems. It provides a convenient Command Line Interface (CLI) and API for installing, switching, removing and listing Candidates. Formerly known as GVM the Groovy enVironment Manager, it was inspired by the very useful RVM and rbenv tools, used at large by the Ruby community.
Install SDKMAN
$ curl -s "https://get.sdkman.io" | bash
Update SDKMAN
$ sdk selfupdate force
Check Version
$ sdk version
==== BROADCAST =================================================================
* 2023-01-04: quarkus 2.15.2.Final available on SDKMAN! https://github.com/quarkusio/quarkus/releases/tag/2.15.2.Final
* 2022-12-29: gradle 8.0-rc-1 available on SDKMAN!
* 2022-12-29: kotlin 1.8.0 available on SDKMAN! https://github.com/JetBrains/kotlin/releases/v1.8.0
================================================================================
SDKMAN 5.16.0
Update Installed Runtimes
$ sdk update
No new candidates found at this time.
Show Runtimes Currently In Use
$ sdk current
Using:
java: 19.0.1-tem
springboot: 3.0.1sdk install java
List All Available Runtimes
$ sdk list
$ sdk ls
List Java Runtimes
$ sdk list java
Install Specific Java Version
$ sdk install java 19.0.1-tem