如何在 IntelliJ IDEA 中设置 SDK?

2022-10-28Java开发问题
8

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

问题描述

我没有找到在 IntelliJ IDEA 中设置 SDK 的任何方法.在 ubuntu 16.04 LTS for 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 /usr/lib/jvm

这意味着 java 位于上述路径之一,例如 /usr/bin/java

Which means that the java resides at one of the above paths as for example /usr/bin/java

因此,该目录应该在 IntelliJ 中指定.可以在Project Structure中配置,按Ctrl + Alt + Shift + S,选择Platform Settings ->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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

如何使用 JAVA 向 COM PORT 发送数据?
How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)...
2024-08-25 Java开发问题
21

如何使报表页面方向更改为“rtl"?
How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)...
2024-08-25 Java开发问题
19

在 Eclipse 项目中使用西里尔文 .properties 文件
Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)...
2024-08-25 Java开发问题
18

有没有办法在 Java 中检测 RTL 语言?
Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)...
2024-08-25 Java开发问题
11

如何在 Java 中从 DB 加载资源包消息?
How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)...
2024-08-25 Java开发问题
13

如何更改 Java 中的默认语言环境设置以使其保持一致?
How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)...
2024-08-25 Java开发问题
13