Where does sdkman install packages?

I used sdkman to install groovy which went fine. Where is the installed package now? I need the path for it. I am on Ubuntu 14.04.


Solution 1:

I've checked it on my system. It should be located in $HOME/.sdkman/candidates/.

Solution 2:

Upon installation, SDKMAN creates an environment variable $SDKMAN_DIR which points to the installation directory.

Usuall it's ~/.sdkman

Solution 3:

I think the best way would be to use SDKMan's home command:

https://sdkman.io/usage#home

Something like this (taken from the above page):

$ sdk home java 11.0.7.hs-adpt
/home/somedude/.sdkman/candidates/java/11.0.7.hs-adpt

Solution 4:

After you have run source $HOME/.sdkman/bin/sdkmain-init.sh, you can see the sdkman "installation" by running:

declare -f