title: IntelliJ IDE gives error when using Try-Catch with Resources
body: <p>I am attempting to use JDK 7's "try-catch with resources" statement; IntelliJ highlights  my resource line, saying </p>
  
  <blockquote>
    <p>Try-with-resources are not supported at this language level.</p>
  </blockquote>
  
  <p>When I try to compile, I get:</p>
  
  <blockquote>
    <p>java: try-with-resources is not supported in -source 1.6
     (use -source 7 or higher to enable try-with-resources)</p>
  </blockquote>
  
  <p>I checked that try-with-resources is enabled for my current project, and that my project is using JDK 7 (Library:  C:\Program Files\Java\jdk1.7.0_11).  Any ideas?  I can't figure out what option to change (if that's even the issue).</p>