Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Netbeans can, jar can not - NoClassDefFoundError: javax/mail/Address

843834Dec 2 2008 — edited Feb 26 2009
I have made a simple java application to send out emails. It works on Netbeans. That is, after compilation on Netbeans, and then run it on Netbeans, the email can be sent out successfully.

But after I made a jar file with cmd.exe, and then try to run it on cmd.exe, it throws the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/Address

Can anyone help to illumine?
thanks a lot!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 26 2009
Added on Dec 2 2008
12 comments
617 views