To manage diverse set of #SDK frameworks, such as #Java, #Maven, #Gradle, #Scala, or some of the main JVM libraries, you can use [SDKMAN!](https://sdkman.io/)
To install SDKMAN, use:
```bash
curl -s "https://get.sdkman.io" | bash
```
Supported frameworks are shown with `sdk list` and include:
- gradle
- groovy
- java
- kotlin
- maven
- sbt
- scala
- spark
- spring (Boot)
- tomcat
- vertex
To install a Java SDK version (preferentially Temurin):
```bash
sdk list java
sdk install java # should install the default
sdk install java 17.0.3-tem
sdk install java 11.0.15-tem
```
Next, set up the global environment with those newly installed SDKs:
```bash
sdk current # show all sdk-picked frameworks in use
sdk current java # show the current java version in use
sdk use java 11.0.15-tem # use the specified version
sdk default java 11.0.15-tem # set the specified version as default
```
Finally, you can create local environments with [`sdk env`](https://sdkman.io/usage#env):
```bash
sdk env init # create a .sdkmanrc file with the current defaults
sdk env # activate all env-picked versions in use
sdk env clear # deactivate the local env again
sdk env install # install the missing frameworks in .sdkmanrc
```
Further operations, see the [usage manual](https://sdkman.io/usage)