关于IDEA的Java版本问题

1、项目使用的Java版本如何切换

文件 ->  项目结构 -> 项目设置 -> SDK (可以选择本地的或者在线安装)

2、如何查看当前mac笔记本环境变量的Java版本

/usr/libexec/java_home -V

3、如何查看当前mac笔记本所有的Java版本

echo $JAVA_HOME      
sudo vi ~/.bash_profile  export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_321.jdk/Contents/Home  source .bash_profile 

4、Java的SDK下载地址 - M1 选择哪个版本

ARM 的 DMG

https://www.oracle.com/java/technologies/downloads/#jdk18-mac

5、Java的编译选项有哪些

 

 

TRANSLATE with x English
Arabic Hebrew Polish
Bulgarian Hindi Portuguese
Catalan Hmong Daw Romanian
Chinese Simplified Hungarian Russian
Chinese Traditional Indonesian Slovak
Czech Italian Slovenian
Danish Japanese Spanish
Dutch Klingon Swedish
English Korean Thai
Estonian Latvian Turkish
Finnish Lithuanian Ukrainian
French Malay Urdu
German Maltese Vietnamese
Greek Norwegian Welsh
Haitian Creole Persian  
  TRANSLATE with COPY THE URL BELOW Back EMBED THE SNIPPET BELOW IN YOUR SITE Enable collaborative features and customize widget: Bing Webmaster Portal Back