title: intellij - java: Cannot find JDK '1.7' for module
body: <p>I've just installed IntelliJ on Windows 8 (and 7). I then use the 'Java Hello World' Sample as my project.</p>
  
  <p>I then selected the JDK that was installed (C:\Program Files\Java\jdk1.7.0_10). Project creates successfully and I can see all the classes associated with the project etc.  When I "make the project" I get the following error:</p>
  
  <pre><code>Compilation completed with 1 error and 0 warnings in 2 sec
  1 error 
  0 warnings
  java: Cannot find JDK '1.7' for module 'TEST'
  </code></pre>
  
  <p>No matter what I do I cannot compile any Java code under Windows8/IntelliJ</p>
  
  <p>I have tried the following:</p>
  
  <ul>
  <li>Invalidating cache.</li>
  <li>Switching to 32bit JDK instead of 64bit </li>
  <li>Idea64.exe instead of idea.exe</li>
  <li>Installing 1.6 incase it was a 1.7 issue??</li>
  <li>Changed the JAVA_HOME to point to different versions (ie currently C:\Program Files\Java\jdk1.7.0_10)</li>
  </ul>
  
  <p>I'm lost as to why this is happening.</p>