問題描述
我沒有找到在 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?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!