Article View: borland.public.jbuilder.java.api
Article #1590Javamail works under Jbuilder but not under command line
From: Roy McBrayer
Date: Tue, 11 Dec 2001 15:40
Date: Tue, 11 Dec 2001 15:40
16 lines
1978 bytes
1978 bytes
I have a program that is using the Java mail api. It runs fine when compiled under JBuilder, but similar to my previous questions, it will not run from the command line. The appropriate files are added to a library and the packages have been imported into the project. I get the following error. As I said before, I must be missing the big picture regarding libraries, importing packages and how JBuilder sets up the classpath. Can anyone give me an idea of what is wrong?
Thanks,
Roy McBrayer
javax.mail.NoSuchProviderException: No provider for Address type: rfc822
at javax.mail.Session.getTransport(Session.java:516)
at javax.mail.Transport.send0(Transport.java:155)
at javax.mail.Transport.send(Transport.java:81)
at mailtest3.mailtest.postMail(mailtest.java:57)
at mailtest3.Frame1.jbInit(Frame1.java:34)
at mailtest3.Frame1.<init>(Frame1.java:15)
at mailtest3.Application1.<init>(Application1.java:11)
at mailtest3.Application1.main(Application1.java:40)
Technical Details
Message-ID:
<3c1628d1$1_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!news1.optus.net.au!optus!newshub1.rdc1.nsw.optushome.com.au!news.mel.connect.com.au!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,6ccd96b37f5aca63,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-12-11 07:55:24 PST From: "Roy McBrayer" <roymcbrayer@austin.rr.com> Sender: "Roy McBrayer" <roymcbrayer@austin.rr.com> Reply-To: "Roy McBrayer" <roymcbrayer@austin.rr.com> Subject: Javamail works under Jbuilder but not under command line Newsgroups: borland.public.jbuilder.java.api X-User-Info: 63.160.3.152 63.160.3.152 NNTP-Posting-Host: 207.105.83.65 Message-ID: <3c1628d1$1_2@dnews> Date: 11 Dec 2001 07:40:01 -0800 X-Trace: dnews 1008085201 207.105.83.65 (11 Dec 2001 07:40:01 -0800) Lines: 16 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!news1.optus.net.au!optus!newshub1.rdc1.nsw.optushome.com.au!news.mel.connect.com.au!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnews