JavaMail works from within JBuilder but throws NoSuchProviderException from JAR

A

alan_conoco

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
 

ut7

Joined
Aug 26, 2006
Messages
1
Reaction score
0
Problem with JavaMail and jBuilder

I am having the same problem and would really appreciate any help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,809
Latest member
moe77

Latest Threads

Top