Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JavaMail works from within JBuilder but throws NoSuchProviderException from JAR

0 views
Skip to first unread message

alan_...@hotmail.co.uk

unread,
Aug 1, 2006, 9:35:30 AM8/1/06
to
Hi all,

I have written a progam which uses JavaMail to send a couple of emails.
This works perfectly when run in JBuilder 2006 Enterprise.

However when I deploy the project to a JAR (all done using the features
in JBuilder) and execute if from the command line it throws

javax.mail.NoSuchProviderException: smtp
at javax.mail.Session.getService(Session.java:768)
at javax.mail.Session.getTransport(Session.java:708)
at javax.mail.Session.getTransport(Session.java:651)
at javax.mail.Session.getTransport(Session.java:631)
at javax.mail.Session.getTransport(Session.java:686)
at javax.mail.Transport.send0(Transport.java:166)
at javax.mail.Transport.send(Transport.java:98)

any help would be greatly appreciated, I am proficient with writing
code but have no idea where to start with networking issues like
this....

OS: Win NT
JRE: 1.5

thanks,

Alan

alan_...@hotmail.co.uk

unread,
Aug 1, 2006, 11:00:35 AM8/1/06
to
Solved!

A

0 new messages