如何设置IntelliJ IDEA Project SDK [英] How to set IntelliJ IDEA Project SDK
问题描述
我刚刚安装了IntelliJ IDEA,当我尝试创建我的第一个Project时,它要求我设置Project SDK。当我点击JDK时,它要求我选择JDK的主目录,如图所示。
I just installed IntelliJ IDEA and when I try to create my first Project it asks for me to set up the Project SDK. When I click on "JDK" it asks for me to select the home directory of the JDK as shown in this image.
我无法找到它的位置。
推荐答案
对于新项目,请选择jdk的主目录
For a new project select the home directory of the jdk
例如 C:\ Java \ jdk1.7.0_99
或 C:\Program Files\Java \ jdk1.7.0_99
对于现有项目。
1)您需要 jdk
安装在系统上。
1) You need to have a jdk
installed on the system.
例如在
C:\ Java \ jdk1.7.0_99
2)转到项目结构
文件
菜单 ctrl + alt + shift + S
3) SDK
位于平台设置
下。选择它。
3) SDKs
is located under Platform Settings
. Select it.
4)点击窗口顶部的绿色 +
。
4) click the green +
up the top of the window.
5)选择 JDK
(我必须用键盘选择它不知道为什么)。
5) select JDK
(I have to use keyboard to select it do not know why).
选择jdk安装的主目录。
select the home directory for your jdk installation.
应该不错。
这篇关于如何设置IntelliJ IDEA Project SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!