Get Absolute Path To An SDK With SDKMAN!
SDKMAN! has a home
command that will return the absolute path of any SDK we pass as argument. This can be useful in scripts where we need the absolute path to a SDK. We can specify the name of the SDK after the home
command and the version. To use the current version that is set as default we can use as version current
.