- Install asdf
brew install asdf
- Add java plugin to asdf
asdf plugin-add java https://github.com/halcyon/asdf-java.git
- Install jdk13
asdf install java adoptopenjdk-13.0.2+8.1
- Set global jdk installation
asdf global java adoptopenjdk-13.0.2+8.1
- Run asdf script to update JAVA_HOME env variable
. ~/.asdf/plugins/java/set-java-home.bash
- Copy java home path
echo $JAVA_HOME
- Add local installation of java to sdkman
sdk install java 13-adpotopenjdk <Path from step 6>
- Set sdkman java version
sdk use java 13-adpotopenjdk
- Verify installation
java --version