Note that there are some explanatory texts on larger screens.

plurals
  1. PONetbeans: how to add Java EE container to java project
    primarykey
    data
    text
    <p>I am trying to send am email SSL email in Netbeans and I have added both <code>javaee.jar</code> and <code>mail.jar</code> to my project but I am getting the following error</p> <pre><code>Exception in thread "main" java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/mail/MessagingException 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 GUI.CompilerForm.&lt;init&gt;(CompilerForm.java:43) at Compiler.Main.main(Main.java:19) </code></pre> <p>From my research I have found out that I am going to have to run my code inside a Java EE container but I have no experience with this. I have looked this up online with little success, only finding out about Java EE containers. </p> <p>So how do you add code to a Java EE container and then use this in a project?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload