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
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