title: java.lang.UnsupportedClassVersionError: (org/json/JSONObject) bad major version at offset=6
body: <p>In project i am using Websepear as server. After adding Json to my project i am getting below error.</p>
  
  <pre><code>---Original exception---
  java.lang.UnsupportedClassVersionError: (org/json/JSONObject) bad major version at offset=6
      at java.lang.ClassLoader.defineClassImpl(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:222)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:148)
      at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:526)
      at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:477)
  </code></pre>
  
  <p><strong>Here is the Exception description .</strong></p>
  
  <pre><code> Caused by: java.lang.LinkageError: LinkageError while defining class: org.json.JSONObject
      Could not be defined due to: (org/json/JSONObject) bad major version at offset=6
      This is often caused by having a class defined at multiple
      locations within the classloader hierarchy.  Other potential causes
      include compiling against an older or newer version of the class
      that has an incompatible method signature.
      Dumping the current context classloader hierarchy:
          ==&gt; indicates defining classloader
      ==&gt;[0] 
  </code></pre>
  
  <p><strong>NOTE:-</strong>
  I built and run my project on java 6</p>