最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

"Project jdk is not defined" in an IntelliJ's 2016.3 JavaScript Project - Stack Overflow

programmeradmin1浏览0评论

After update to IntelliJ IDEA 2016.3 I get the warning: "project jdk is not defined" in a JavaScript/Node/React project. Have I overseen something? How to solve it? Under "Setup JDK" link I cannot find any notes that fit.

After update to IntelliJ IDEA 2016.3 I get the warning: "project jdk is not defined" in a JavaScript/Node/React project. Have I overseen something? How to solve it? Under "Setup JDK" link I cannot find any notes that fit.

Share Improve this question asked Nov 26, 2016 at 12:26 Adam Bogdan BoczekAdam Bogdan Boczek 1,7706 gold badges22 silver badges34 bronze badges 5
  • It seems that projects give this warning if nothing is set for the Project SDK in Project Structure: Project Settings: Project: Project SDK field. JavaScript projects don't need this to be set but you could point it to a Java SDK or Ruby SDK etc to make the warning go away. – Will Humphreys Commented Nov 27, 2016 at 10:44
  • @WillHumphreys When I set the SDK through the Project Structure menu, the "project jdk is not defined " the notification didn't go away. I had to click the "Setup SDK" link in the notification itself. – Rag Commented Nov 28, 2016 at 21:00
  • 1 @BrianGordon That's interesting. I have just tried adding and removing the a Java project sdk from a project just containing some HTML files and both methods work for me. I can make the notification appear and disappear whether I go through project structure or through the notification. My Intellij version is IntelliJ IDEA 2016.3 Build #IU-163.7743.44. – Will Humphreys Commented Nov 28, 2016 at 21:24
  • 1 This has been reported as IDEA-164954. – xehpuk Commented Dec 6, 2016 at 9:32
  • Disabling the Scala plugin helps: SCL-11105 – xehpuk Commented Dec 13, 2016 at 17:50
Add a ment  | 

1 Answer 1

Reset to default 3

This is a known issue with the Scala Plugin for IntelliJ IDEA, see this issue on the JetBrains bug tracker: https://youtrack.jetbrains./issue/SCL-11105

Quoting from the bug report:

After upgrading to 2016.3 Ultimate, the editor windows show a yellow bar at the top that says "Project JDK is not defined" with a link to "Setup JDK" on my non-Java project. I don't want a JDK associated with this project because it's not a Java project. It's a small Docker project with Git version control. Please turn the message off.

User's ments:

It turns out that the issue is related to the Scala plug-in. (...) I can confirm that disabling the Scala plugin made the error vanish.

If you don't want to disable the Scala plugin, as a workaround you can set up the project's SDK (even though it is not a Java project) by going to the project settings menu (FileProject StructureProject) and selecting any SDK in the project SDK dropdown.

The bug ticket has been resolved, so the problem should not exist anymore if you have a recent version of IDEA and the Scala plugin.

发布评论

评论列表(0)

  1. 暂无评论