Article View: borland.public.jbuilder.java.api
Article #1406Java Mail No Provider Found RFC 822
From: Roy McBrayer
Date: Thu, 03 Jan 2002 14:08
Date: Thu, 03 Jan 2002 14:08
40 lines
2874 bytes
2874 bytes
I got it to work after thinking about how I could explicitly add the Meta-INf files to the jar instead of just the class path to the Meta-Inf files. Thanks for your help. The answer is to go to Properties for the Archive. Then select the content tab. Click the add files button and add the following files: Meta-inf\javamail.charset.map, Meta-inf\javamail.default.address.map,Meta-inf\javamail.default.providers.I do not know if all of them are needed or not but the providers file is required. Select OK, make the project and the mail should work. The no such provider error should not show up. Roy McBrayer "Roy McBrayer" <roymcbrayer@austin.rr.com> wrote: > >I am sure it can be done but I just haven't hit upon the answer yet. When you say "explicity added", what specifically do you mean? I have added the meta-inf directory to a library as a class path only and this is included in the jar. Is there something else that I need to do? > >Thanks for your help. > >Roy > >"R.F. Pels" <ruurd@acklin.nl> wrote: >>Roy McBrayer wrote: >> >>> I found this statement on JGuru regarding the mail.jar file. >>> >>> "Here's something of note that we found while coming up with the solution. >>> The Java Mail package has a manifest as well as other textual data at the >>> root of the jar package it is deployed in. If you try to include the Mail >>> package in your own application package it will fail because your package >>> will have its own manifest, not the one the JavaMail needs. >> >>Because that textual data needs to be added EXPLICITLY by you when creating >>a jar that also contains JAF and JavaMail jar-content. It CAN be done, at >>least, I HAVE done it and it WORKS. >> >>> Therefore, you MUST always use the mail API in your classpath, never as >>> part of your own package. >> >>This is a replay of what Sun tells you in the JavaMail documentation. But >>it can be circumvented. >> >>-- >> >>Ruurd >
Technical Details
Message-ID:
<3c3465c5$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub1.nntpserver.com!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3c335bd8$1_1@dnews> <3c339323$1_2@dnews> <3c3399cb_2@dnews> <3c345ef0$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,6e70eee7dc2ae969 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2002-01-03 06:09:55 PST From: "Roy McBrayer" <roymcbrayer@austin.rr.com> Sender: "Roy McBrayer" <roymcbrayer@austin.rr.com> Reply-To: "Roy McBrayer" <roymcbrayer@austin.rr.com> Subject: Java Mail No Provider Found RFC 822 Newsgroups: borland.public.jbuilder.java.api X-User-Info: 63.160.3.152 63.160.3.152 References: <3c335bd8$1_1@dnews> <3c339323$1_2@dnews> <3c3399cb_2@dnews> <3c345ef0$1_2@dnews> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3c3465c5$1_1@dnews> Date: 3 Jan 2002 06:08:05 -0800 X-Trace: dnews 1010066885 207.105.83.65 (3 Jan 2002 06:08:05 -0800) Lines: 41 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub1.nntpserver.com!newsfeed01.sul.t-online.de!t-online.de!dnews