intellij - java: Cannot find JDK '1.7' for module

前端 未结 7 1834
梦毁少年i
梦毁少年i 2020-12-20 12:23

I\'ve just installed IntelliJ on Windows 8 (and 7). I then use the \'Java Hello World\' Sample as my project.

I then selected the JDK that was installed (C:\\Program

7条回答
  •  伪装坚强ぢ
    2020-12-20 12:55

    I made the error while editing idea.properties to leave a whitespace at the end of my personally added idea.config.path=../.IdeaIC/config line.

    This resulted exactly in the Cannot find JDK '...' for module error message.

    I needed to "trim" the line manually, just deleted the whitespace, restarted IntelliJ and everything worked fine again.

    I found this while scanning the idea.log file where I found java.io.FileNotFoundException: C:\Software\IntelliJ IDEA Community Edition 14.1.3\.IdeaIC\config \tasks\root.contexts.zip

提交回复
热议问题