java sdk 管理神器

可以管理 java 版本 maven 版本 gradle 版本

linux

curl -s "https://get.sdkman.io" | bash

mac M2 arm

brew tap sdkman/tap
export HOMEBREW_NO_INSTALL_CLEANUP=TRUE
curl -s https://api.sdkman.io/2/candidates/all -o /opt/homebrew/Cellar/sdkman-cli/5.16.0/libexec/var/candidates
arch -arm64 brew install sdkman-cli

vim .bash_profile

export SDKMAN_DIR=/opt/homebrew/opt/sdkman-cli/libexec;
export PATH=$PATH:$SDKMAN_DIR/bin;

posted @ 2023-02-07 09:52  vx_guanchaoguo0  阅读(56)  评论(0编辑  收藏  举报