Getting "javax.mail.NoSuchProviderExcception: smtp" when running executable jar mailing application.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Michael_Shlayen
Posted On:   Saturday, December 6, 2003 03:19 PM


I created mail sending application using JBuilder environment.
When I run my program from within JBuilder, it is working perfectly, but when I create executable jar file and run it, it throws an exception: "javax.mail.NoSuchProviderExcception: smtp".
I placed mail.jar, smtp.jar, activation.jar, etc... into the classpath, but it doesn't help.

Re: Getting "javax.mail.NoSuchProviderExcception: smtp" when running executable jar mailing application.

Posted By:   Michael_Shlayen  
Posted On:   Wednesday, December 10, 2003 10:48 AM

FOUND THE PROBLEM!!!

Looks like ther is a bug in JBuilder-9 Personal!

I specified to attach all required classes and ALL ressources while building executable jar file, but JBuilder attached javamail library not completly.
Somehow under com.sun.mail it attached only utils directory, skipping all others.
After I manualy added all other directories, it start working.
About | Sitemap | Contact