如何在IntelliJ IDEA中设置SDK? [英] How to setup SDK in IntelliJ IDEA?
问题描述
我没有找到任何方法在IntelliJ IDEA中设置SDK。
找不到在ubuntu 16.04 LTS中为IntelliJ IDEA设置SDK的任何路径。
I am not finding any way to setup the SDK in IntelliJ IDEA. Not finding any path to setup the SDK in ubuntu 16.04 LTS for IntelliJ IDEA.
我正在使用这个IDE来处理mongodb。但由于这个问题无法继续。
I am working in this IDE for working on mongodb. But can't proceed because of this problem.
推荐答案
要在ubuntu上找到安装java的路径,可以运行来自终端的以下命令:
To find the path where java is installed on ubuntu, you can run the following command from terminal:
$ whereis java
你可能会得到这样的结果:
You may get something like this:
java: /usr/bin/java /etc/java /usr/share/java
这意味着java驻留在/ usr / bin / java
That mean that java resides in /usr/bin/java
因此,该目录应该在IntelliJ中指定。您可以在项目结构
中进行配置,按 Ctrl + Alt + Shift + S
,选择平台设置 - > SDKs
,点击绿色按钮(+)
,选择JDK的主目录。
So, that directory should designate in IntelliJ. You can configure in the Project Structure
, press Ctrl + Alt + Shift + S
, choose Platform Settings -> SDKs
, click on green button (+)
, select the home directory for JDK.
这篇关于如何在IntelliJ IDEA中设置SDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!