Very simple in case you use MAC & OH MY ZSH
step 1:
vim ~/.zshrc
step 2:(Add at the end of the file)
source ~/.bash_profile;
step 3:(Execution shell)
> source ~/.bash_profile
You can use sdkman :
➜ sdk
We periodically need to update the local cache. Please run:
$ sdk update
BINGO!!!