title: Bad version number error in classfile
body: <p>I have created a jar file using eclipse. My jdk version is <code>1.5.0</code>. when i run that jar file on linux machine with the same <code>JDK</code> it works fine. But when I run this jar on solaris machine with <code>JDK 1.5.0_14</code> installed it gives error as</p>
  
  <pre><code>Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClass(Unknown Source)
          at java.security.SecureClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.access$100(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClassInternal(Unknown Source)
  </code></pre>
  
  <p>I couldn't get any solution..?</p>