The default interactive shell is now zsh. To update your account to use zsh, please run `chsh -s /bin/zsh`. For more details, please visit https://support.apple.com/kb/HT208050. Github-Id-VampireAchao:blog achao$ cd Github-Id-VampireAchao:~ achao$ curl -s "https://get.sdkman.io" | bash
Looking for a previous installation of SDKMAN... Looking for unzip... Looking for zip... Looking for curl... Looking for sed... Installing SDKMAN scripts... Create distribution directories... Getting available candidates... Prime platform file... Prime the config file... Installing script cli archive... * Downloading... ######################################################################## 100.0% * Checking archive integrity... * Extracting archive... * Copying archive contents... * Cleaning up...
Set version to 5.18.2 ... Set native version to 0.4.6 ... Attempt update of login bash profile on OSX... Added sdkman init snippet to /Users/achao/.bash_profile Attempt update of zsh profile... Updated existing /Users/achao/.zshrc
All done!
You are subscribed to the STABLE channel.
Please open a new terminal, or run the following in the existing one:
source"/Users/achao/.sdkman/bin/sdkman-init.sh"
Then issue the following command:
sdk help
Enjoy!!! Github-Id-VampireAchao:~ achao$ source"$HOME/.sdkman/bin/sdkman-init.sh" Github-Id-VampireAchao:~ achao$ sdk version
Stop! java 11.0.22-open is not available. Possible causes: * 11.0.22-open is an invalid version * java binaries are incompatible with your platform * java has not been released yet
Tip: see all available versions for your platform:
$ sdk list java Github-Id-VampireAchao:~ achao$ sdk list java Github-Id-VampireAchao:~ achao$ sdk list java Github-Id-VampireAchao:~ achao$ Github-Id-VampireAchao:~ achao$ sdk list java Github-Id-VampireAchao:~ achao$ sdk install java 11.0.22-amzn
Using java version 11.0.22-amzn in this shell. Github-Id-VampireAchao:~ achao$ java -version openjdk version "11.0.22" 2024-01-16 LTS OpenJDK Runtime Environment Corretto-11.0.22.7.1 (build 11.0.22+7-LTS) OpenJDK 64-Bit Server VM Corretto-11.0.22.7.1 (build 11.0.22+7-LTS, mixed mode) Github-Id-VampireAchao:~ achao$ sdk current java
Using java version 11.0.22-amzn Github-Id-VampireAchao:~ achao$ sdk list java Github-Id-VampireAchao:~ achao$ Github-Id-VampireAchao:~ achao$