Last active
January 6, 2023 15:20
-
-
Save jonashackt/c51a54215f95b33857fc4873750b850c to your computer and use it in GitHub Desktop.
SDKMan cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use another Java version as currently active | |
sdk list java | |
================================================================================ | |
Available Java Versions | |
================================================================================ | |
Vendor | Use | Version | Dist | Status | Identifier | |
-------------------------------------------------------------------------------- | |
AdoptOpenJDK | | 15.0.1.j9 | adpt | | 15.0.1.j9-adpt | |
| | 15.0.1.hs | adpt | installed | 15.0.1.hs-adpt | |
| | 14.0.2.j9 | adpt | | 14.0.2.j9-adpt | |
... | |
Amazon | | 15.0.1 | amzn | | 15.0.1-amzn | |
| | 11.0.9 | amzn | | 11.0.9-amzn | |
... | |
GraalVM | >>> | 20.2.0.r11 | grl | installed | 20.2.0.r11-grl | |
| | 20.2.0.r8 | grl | | 20.2.0.r8-grl | |
| | 20.1.0.r11 | grl | | 20.1.0.r11-grl | |
| | 20.1.0.r8 | grl | | 20.1.0.r8-grl | |
| | 20.0.0.r11 | grl | | 20.0.0.r11-grl | |
| | 20.0.0.r8 | grl | | 20.0.0.r8-grl | |
| | 19.3.1.r11 | grl | | 19.3.1.r11-grl | |
# Only use another Java version in the current shell session | |
# sdk use java <<identifier-here>> | |
sdk use java 15.0.1.hs-adpt | |
# Always use another Java version in every shell session & after restarts | |
sdk default java 15.0.1.hs-adpt | |
# then check if JDK 15 is now active instead of Graal 20.2.0 | |
java -version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.sdkman\etc\config
sdkman_auto_env=false
change value from false to true no need to run "sdk env"