简体   繁体   中英

How can I add JDK 1.8.0_161 to IntelliJ IDEA?

I installed IntelliJ IDEA and the latest Java (1.8.0_161), which I downloaded from Oracle, to my new Mac (10.13.3).

How can I add JDK 1.8.0_161 to IntelliJ IDEA? Where is my jdk1.8.0_161 folder?

I thank you in advance.

  1. JDK 1.8.0_161 was not found inIntelliJ IDEA.

在IntelliJ IDEA中找不到JDK 1.8.0_161。

  1. Java seems to be properly installed.

Java似乎已正确安装。

  1. I went to that path, but failed to find jdk1.8.0_161 folder.

我去了那条路,但是找不到jdk1.8.0_161文件夹。

  1. It seems that my mac only has 1.6.0.

看来我的Mac只有1.6.0。

  1. I checked the version and my java is still 1.6.0.

我检查了版本,我的java仍然是1.6.0。

Step 1. Open the Project Structure dialog (Ctrl+Shift+Alt+S).

Step 2. In the leftmost panel, under Platform Settings, click SDKs.

Step 3. Above the pane to the right, click new and select JDK.

Step 4. In the dialog that opens, select the installation directory of the JDK to be used and click OK.

Java的自动更新已删除JDK,重新安装Java SE Development Kit 8u162

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM