title: JMS Application giving error
body: <p>I'm trying to run some applications (both my own and tutorial-applications) to help me understanding the basics of JMS. The code in the applications should be correct (for at least some). My added libraries are: <code>Java EE 6 API Library - javaee-api-6.0.jar</code>, <code>jndi-properties.jar</code>, <code>appserv-rt.jar</code>, <code>javaee.jar</code> and <code>JDK 1.7(Default)</code>. </p>
  
  <p>But with every single application I try to start, I get the following error message:</p>
  
  <pre><code>run:
  java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/jms/JMSException
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
      at java.lang.Class.getMethod0(Class.java:2685)
      at java.lang.Class.getMethod(Class.java:1620)
      at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:488)
      at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:480)
  Exception in thread "main" Java Result: 1
  BUILD SUCCESSFUL (total time: 1 second)
  </code></pre>
  
  <p>Note that it does say <code>BUILD SUCCESSFUL</code>, but it's a runnable form class (with 2 textfields and a button) and I don't see my form. </p>
  
  <p>I'm trying my applications in NetBeans 7.1.1 using GlassFish Server 3.1.2 1. I've configured the used connection factories and destination resources in the admin console. </p>
  
  <p>As seen by other related questions, I've tried moving the <code>javaee.jar</code> up and down the classpath, and even removed it, with no results. The same goes for <code>Java EE 6 API Library</code>, but that jar is needed for my project.</p>