title: UnsupportedClassVersionError in upgrading from jdk6 to 7
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/9290848/how-to-set-a-java-compiler-in-netbeans">How to set a java compiler in Netbeans</a>  </p>
  </blockquote>
  
  
  
  <p>I m getting the following stack-trace when i changed my jdk version in netbeans from jdk6 to 7....</p>
  
  <pre><code>java.lang.UnsupportedClassVersionError: WEB9032: Class
  com.hcdc.coedp.safe.controller.GatewayController has unsupported major or 
  minor version numbers, which are greater than those found 
  in the Java Runtime Environment version 1.6.0_32
  </code></pre>
  
  <p>I am using glassfish 3.1.2 and spring framework.
  Plz help me out.</p>
  
  <p>Edit: I have edited the jdk version in glassfish asenv.bat file to jdk 7 now also getting the same error.</p>