mac-java

Ling Yu
ls /Library/Java/JavaVirtualMachines/
sudo rm -rf /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/
ln -sfn /usr/local/opt/openjdk11.jdk /Library/Java/JavaVirtualMachines/openjdk11.jdk
配置
以 .zshrc 为例
source ~/.zshrc 在终端中使用 java 命令行工具,来检查配置是否生效:
java -version