No JDK specified for module ERROR MESSAGE

Im new with using intellij and I installed it and I'm trying to run a java project but when I select run I get the following error: Error running build DBViews: No jdk for module "insert name". And idea on how to fix this? I have jdk installed. I've looked through the support documents to find an answer but the steps that they tell me to do aren't available for ex. I cannot create a "new" jdk. Thanks!

9 comments

Hi,
you need to set the JDK for your project and/or modules.

Open the project settings (File->Project settings...).

Most of the time you just need to set the project sdk (to your java sdk) and configure the modules to use the project sdk.
Probably one of those settings is missing.

Regards,
Wallaby

1

Still don't have that option. I heard something about pointing it to the jdk? how would u do that??



Attachment(s):
no jdk.jpg
0

Hello,

Take a look at my post in the following thread where I laid out detailed steps on how to confgure the JDK in a project. See if that helps. Seeing all the red gutter marks in your screenshot leads me to beleive you your JDK is not configured correctly.

http://devnet.jetbrains.net/message/5261815#5261815

-Mark

0

Sadly, Mark Vedder's link has broken (404).

On my machine, I found out where the JDK was by typing `which java` at the console.

0

Great support, right on time....

0

Was stuck for so long because of this issue. Thank you for your help J. Ansorg

0

There is no "Project settings..." under "File" anymore, could you update this answer?

0

You can open File | Settings instead (Ctrl+Alt+S).

0

Restart intelliJ and import project as maven if it is a maven project.

0

Please sign in to leave a comment.