Neurohazard
暮雲煙月,皓首窮經;森羅萬象,如是我聞。

Java JDK 多版本快速切换

wpadmin~January 5, 2020 /System Management

Java JDK 多版本快速切换

可以考虑使用 sdkman

https://sdkman.io/install

SSL 问题

sdkman_insecure_ssl=true in ~/.sdkman/etc/config

添加本地版本

sdk list java
sdk install java 8-oracle /Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home

切换 Java 版本

sdk use java 8-oracle
sdk use java 7.0.191-zulu

参考资料

https://sdkman.io/usage#installdefault

Leave a Reply

Your email address will not be published. Required fields are marked *