Netbeans can, jar can not - NoClassDefFoundError: javax/mail/Address
843834Dec 2 2008 — edited Feb 26 2009I 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!