• Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.mail.NoSuchProviderException

 
Jumpy David
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I get NoSuchProviderException when I call
Transport.send(msg).
Mail transport Protocol I'm using is smtp.
Can anybody help ?
-Jumpy
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jumpy David:
Hi!
I get NoSuchProviderException when I call
Transport.send(msg).
Mail transport Protocol I'm using is smtp.
Can anybody help ?
-Jumpy

Normaly this happens by the lack of "providers configuration files" (somewhat META Directories...) included with the jar mail.jar.
In my case, it happened when i did the import process of the jar file without resource files into my IDE (Visual Age for Java), If only import the class files then exist this problem.
The cure is: reinstall and/or import ALL the jar file selecting the class and the resources incorporated.
HiPSO
------------------
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!