I tried jlink for the first time. I'm getting this error:
BUILD FAILED
jlink.xml:77: java.util.zip.ZipException: invalid entry crc-32 (expected 0x4e3 but got 0x24b7559e)
java.util.zip.ZipException: invalid entry crc-32 (expected 0x4e3 but got 0x24b7559e)
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Exception.java:42)
at java.io.IOException.<init>(IOException.java:47)
at java.util.zip.ZipException.<init>(ZipException.java:46)
at java.util.zip.ZipOutputStream.closeEntry(Compiled Code)
at org.apache.tools.ant.taskdefs.optional.jlink.jlink.mergeZipJarContents(Compiled Code)
at org.apache.tools.ant.taskdefs.optional.jlink.jlink.link(Compiled Code)
at org.apache.tools.ant.taskdefs.optional.jlink.JlinkTask.execute(JlinkTask.java)
at org.apache.tools.ant.Target.execute(Compiled Code)
at org.apache.tools.ant.Project.runTarget(Project.java)
at org.apache.tools.ant.Project.executeTarget(Compiled Code)
at org.apache.tools.ant.Project.executeTargets(Compiled Code)
at org.apache.tools.ant.Main.runBuild(Compiled Code)
at org.apache.tools.ant.Main.main(Main.java)
Which, by trial and error, I determined to be caused by the "vbjorb.jar" entry. However, this jar file can be used by java classes, it can be listed and extracted with the 'jar' command, and can be expanded by ant with the "unjar", since I used to do this job by unjarring all the jars and then making a merged jar file from the extracted files.
Any ideas? (jdk1.2.2 on solaris 2.6, Ant 1.2rc) For reference: <delete file="ALL.jar" />
<jlink compress="false" outfile="ALL.jar">
<mergefiles>
<pathelement path="lib/vbjorb.jar"/>
<pathelement path="lib/activation.jar"/>
<pathelement path="lib/collections11.jar"/>
<pathelement path="lib/entrust.jar"/>
<pathelement path="lib/xml4j.jar"/>
<pathelement path="lib/xt.jar"/>
</mergefiles>
</jlink>
At 05:40 PM 10/13/00 +0200, you wrote:
optional.jar is not complete, some optional tasks are missing and might be added later.
Please give this version a try, enjoy the new features and report bugs and problems to one of the Ant mailing lists so that we can address them before we get to a final release.
