🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1405

Re: Found this on JGuru regarding classpath and mail.jar

#1405
From: Roy McBrayer
Date: Thu, 03 Jan 2002 13:38
31 lines
2276 bytes
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: <3c345ef0$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!sfo2-feed1.news.digex.net!intermedia!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3c335bd8$1_1@dnews> <3c339323$1_2@dnews> <3c3399cb_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 05:47:22 PST
From: "Roy McBrayer" <roymcbrayer@austin.rr.com>
Sender: "Roy McBrayer" <roymcbrayer@austin.rr.com>
Reply-To: "Roy McBrayer" <roymcbrayer@austin.rr.com>
Subject: Re: Found this on JGuru regarding classpath and mail.jar
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> 
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3c345ef0$1_2@dnews>
Date: 3 Jan 2002 05:38:56 -0800
X-Trace: dnews 1010065136 207.105.83.65 (3 Jan 2002 05:38:56 -0800)
Lines: 32
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!sfo2-feed1.news.digex.net!intermedia!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews