- 命令 /usr/libexec/java_home 找到java安装位置
- 命令sudo vim .bash_profile
在bash_profile加入,保存并退出。
export JAVA_HOME=/Library/Java/JavaVirtualMachines/graalvm-jdk-17.0.11/Contents/Home
3.source .bash_profile使修改生效
08-07
1736
01-24
938
02-27
851
05-10
2万+