Contents
Java JDK 多版本快速切换
可以考虑使用 sdkman
。
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
sdk install java 7-oracle /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home
sdk install java 11-oracle /Library/Java/JavaVirtualMachines/jdk-11.0.11.jdk/Contents/Home
sdk install java 8.0.232-open
# 默认安装路径为 ~/.sdkman/candidates/java/8.0.232-open/bin/java
切换 Java 版本
sdk use java 8-oracle
sdk use java 7.0.191-zulu
sdk u java 8.0.232-open
Leave a Reply