You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ja...@ubsw.com on 2001/08/23 16:35:00 UTC

jlink caused duplicate entries?

Hi,

When I jlink a bunch of jars it seems that the com directory entry is
put in the outfile more than once. The JVM doesn't seem to have a
problem with this, but when I update it with jar I get the following
error:
[h:\autobuild\ldn_test\view\prod_patch\dist]jar u0f SPS.all.jar
c:\temp\Config.Spec
java.util.zip.ZipException: duplicate entry: com/
        at
java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:165)


And when listing the contents of another jar:
jar tf Jetpac-Infra.jar 
....
com/swissbank/businessobjects/adfin/Test.class
java.util.zip.ZipException: invalid stored block lengths
        at
java.util.zip.InflaterInputStream.read(InflaterInputStream.java:139)

What can I do about these problems?

The task looks like this:

<target name="makeall">
      <delete file="${dist.file.all.jar}" />
      <jlink outfile="${dist.file.all.jar}">
            <mergefiles>
                       <pathelement path="${all.classpath}"/>           
      
            </mergefiles>
      </jlink>
</target>

Thanks, jamie






Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.