title: UnsupportedClassVersionError unsupported major.minor version 51.0 unable to load class
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7237536/exception-in-thread-main-java-lang-unsupportedclassversionerror-a-unsupporte">Exception in thread &ldquo;main&rdquo; java.lang.UnsupportedClassVersionError: a (Unsupporte d major.minor version 51.0)</a>  </p>
  </blockquote>
  
  
  
  <p>i have developed an web application in java using jdk 1.7.0 ,Eclipse IDE (Indigo) and is running that application on the tomcat(apache-tomcat-7.0.23) configured in eclipse ide. </p>
  
  <p>When i tried to run my application through IDE it runs fine but when i created its war and placed it in apache deployment folder(webapps) and run it from outside the IDE the start page gets successfully loaded but when i tried to do any operation over it it gives me an error</p>
  
  <pre><code>UnsupportedClassVersionError unsupported major.minor version 51.0 unable to load class bean.myclassname
  </code></pre>
  
  <p>i have checked the java version outside ide its jdk 1.7.0 and also the JAVA_HOME environment variable is set to C:\Program Files\Java\jdk1.7.0_01 .</p>