You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by dh...@orbitech.co.in on 2002/04/06 13:49:16 UTC

ZipException problem

Hi,

I am getting the following error whenever I buidl a jar or war fil,
basically anything that has a Manifest.mf file. 

Updating jar since cannot read current jar manifest:
java.util.zip.ZipExceptionThe system cannot find the file specified

Can anyone tell me how to avoid it?

The following is my command in build.xml

<jar jarfile="${lib}/MLDevTools.jar" basedir="${tools}" compress="true"
update="no" whenempty="fail" />

It is important for me to totally update all the files in my jar instead
of just the new ones.

Regards,

Dhaval Udani
Senior Analyst
M-Line, QPEG
OrbiTech Solutions Ltd.
+91-22-8290019 Extn. 1457


Re: ZipException problem

Posted by Stefan Bodewig <bo...@apache.org>.
On Sat, 6 Apr 2002, dhaval h. udani <dh...@orbitech.co.in>
wrote:

> Updating jar since cannot read current jar manifest:

Forget the "Updating" part, this is misleading.  What the message
really says is that Ant has failed to read the manifest from the jar
you want to overwrite.  Does it include one?

> java.util.zip.ZipExceptionThe system cannot find the file specified

You are trying to add something to the archive that is not there.  As
you haven't specified a manifest yourself, Ant will try to load it's
default manifest file and fails.

Have you built Ant yourself?

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>