Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup SDK in IntelliJ IDEA?

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.

enter image description here

I am working in this IDE for working on mongodb. But can't proceed because of this problem.

like image 952
Soumen Pasari Avatar asked Feb 04 '23 14:02

Soumen Pasari


1 Answers

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

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

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.

like image 185
JUAN CALVOPINA M Avatar answered Feb 07 '23 18:02

JUAN CALVOPINA M