Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set IntelliJ IDEA Project SDK

People also ask

How do I change the IntelliJ IDEA default JDK?

Navigate to "File" -> "New Projects Setup" -> "Structure..." Next, modify the "Project SDK" and "Project Language Level" as appropriate. Previous versions of IntelliJ IDEA had this setting in "File" -> "Other Settings" -> "Default Project Structure...".

What is the project SDK?

Each project SDK is a set of MSBuild targets and associated tasks that are responsible for compiling, packing, and publishing code. A project that references a project SDK is sometimes referred to as an SDK-style project.

Where is SDK manager in IntelliJ?

The android sdk is stored in usr/local/share/android-sdk . Because I also do Java development, I want to just use IntelliJ instead of downloading Android Studio also.


For a new project select the home directory of the jdk

eg C:\Java\jdk1.7.0_99 or C:\Program Files\Java\jdk1.7.0_99

For an existing project.

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

for instance in

C:\Java\jdk1.7.0_99

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

3) SDKs is located under Platform Settings. Select it.

4) click the green + up the top of the window.

5) select JDK (I have to use keyboard to select it do not know why).

select the home directory for your jdk installation.

should be good to go.


For IntelliJ IDEA 2017.2 I did the following to fix this issue: Go to your project structure enter image description here Now go to SDKs under platform settings and click the green add button. Add your JDK path. In my case it was this path C:\Program Files\Java\jdk1.8.0_144 enter image description here Now Just go Project under Project settings and select the project SDK. enter image description here