title: Configure NetBeans IDE to use specific version of Java API
body: <p>I am using NetBeans 7.2.1.</p>
  
  <p>My Java projects are compliant with Java 6, however it appears that NetBeans is using Java 7 as the compiler.</p>
  
  <p>Java 7 modified some interfaces such as java.sql.Connection by adding more methods such as getNetworkTimeout().</p>
  
  <p>This causes compile-time errors such as </p>
  
  <pre><code>error: MyConnection is not abstract and does not override abstract method getNetworkTimeout() in Connection
  </code></pre>
  
  <p>How can I configure NetBeans to use the Java 6 API?</p>
  
  <ul>
  <li>I have tried right-clicking project, Properties -> Sources -> Source/Binary Format: JDK 6.</li>
  <li>I have tried right-clicking project, Properties -> Build -> Compiling -> Additional Compiler Options: -source 1.6 -target 1.6</li>
  </ul>
  
  <p>Neither of these solve my issue.</p>