赞
踩
先查看Mac中已经装了哪些JDK
输入:/usr/libexec/java_home -V
得到:
Matching Java Virtual Machines (3):
18.0.1.1 (x86_64) "Oracle Corporation" - "OpenJDK 18.0.1.1" /Users/dingjing/Library/Java/JavaVirtualMachines/openjdk-18.0.1.1/Contents/Home
11.0.2 (x86_64) "Oracle Corporation" - "Java SE 11.0.2" /Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home
1.8.0_332 (x86_64) "Amazon" - "Amazon Corretto 8" /Users/dingjing/Library/Java/JavaVirtualMachines/corretto-1.8.0_332/Contents/Home
/Users/dingjing/Library/Java/JavaVirtualMachines/openjdk-18.0.1.1/Contents/Home
dingjing@dingjingdeMacBook-Pro ~ %
如果在AS中想使用11.0.2,就把11.0.2对应的版本号填在AS的Project Structure的JDK Location处。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。