Sorry for the tardy reply, but in case anyone is interested ...
Mel's suggestion will fix the problem.  The reason for this is bug #4214785
in Sun's bug parade ("Plug-in doesn't load images from JAR files").

Matt McHenry
Software Developer
Carnegie Learning

> -----Original Message-----
> From: Riffe, Melvin [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 16, 2002 10:05
> To: 'Ant Users List'
> Subject: RE: include jpeg/gifs in a jar
> 
> 
> Neil,
> 
> just a guess here as i've not done any applet development or heard of
> condensity (i feel a googling coming on...)
> 
> using straight ant and the <jar> task, try compress="false".  
> this stores
> the files without compressing them.  sounds like you're 
> trying to access the
> image files directly from the jar and they've been compressed.
> 
> again, this is just a guess... ;-)
> 
> Mel Riffe
> 
> 
> -----Original Message-----
> From: Neil Oman [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 16, 2002 9:46 AM
> To: Ant Users List
> Subject: Re: include jpeg/gifs in a jar
> 
> 
> Hello,
> 
> I've written a few java applets and want to bundle them into 
> a jar using ant
> & condensity 2.0.
> 
> First of all I can't find a way that condensity will allow me 
> to include
> gifs and jpegs, build fails whatever I try.
> Second of all if I don't use condensity, just ant, my gifs 
> and jpegs get
> "junked". They are either not recognised by the applet or 
> only half of each
> picture is loaded.
> I have also tried bundling them all into a normal jar, and 
> this has much the
> same effect.
> 
> I tried this method with java 1.2beta, bundling all into one 
> jar in several
> java 1.1 applets a year ago and it worked fine, now I have 
> java 1.4 and the
> code is in java 1.2. My picture loader can load images from 
> within a jar,
> and the code is the same as that used a year ago.
> 
> Am I doing something terribly stupid? or is it not me at all?
> 
> Can somebody please help!
> Kind Regards,
> Neil Oman
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
 
**************************************************************************
The information transmitted herewith is sensitive information intended only
for use by the individual or entity to which it is addressed. If the reader
of this message is not the intended recipient, you are hereby notified that
any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.

Reply via email to