如何设置 IntelliJ IDEA 项目 SDK [英] How to set IntelliJ IDEA Project SDK

查看:163
本文介绍了如何设置 IntelliJ IDEA 项目 SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了 IntelliJ IDEA,当我尝试创建我的第一个项目时,它要求我设置项目 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:Javajdk1.7.0_99C:Program FilesJavajdk1.7.0_99

对于现有项目.

1) 您需要在系统上安装 jdk.

1) You need to have a jdk installed on the system.

例如在

C:Javajdk1.7.0_99

2) 进入File 菜单下的project structure ctrl+alt+shift+S

2) go to project structure under File menu ctrl+alt+shift+S

3) SDKs 位于 Platform Settings 下.选择它.

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 项目 SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆