File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes error in java mail program execution Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "error in java mail program execution" Watch "error in java mail program execution" New topic
Author

error in java mail program execution

ankittt agarwala
Ranch Hand

Joined: Jan 19, 2011
Posts: 42
Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/Authentica
tor
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.getMainMethod(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.mail.Authenticator
at java.net.URLClassLoader$1.run(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)
... 6 more
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

ankittt agarwala wrote:Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/Authentica
tor

mail.jar and activation.jar are missing!


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
ankittt agarwala
Ranch Hand

Joined: Jan 19, 2011
Posts: 42
ok thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error in java mail program execution
 
Similar Threads
MySQL Connector/J
errors with main class
Exception
Problem in sending a mail from a servlet
Why I can't run Web Start when my class using hibernate?