import-bot (20212) [Avatar] Offline
#1
[Originally posted by javadog01]

I know, I know, it's got to be a path/classpath problem but I can't figure it
out. The kicker is that Ant works fine (cleans, compiles, archives, etc.)
except that I get the following exception before the init task starts; that
success seems to suggest that it's not a classpath/path problem. Just
wondering if you've heard of anything similar. As you can see the exception
occurs a tick after the "Buildfile: build.xml" appears on the screen. Any
help is greatly appreciated.

Buildfile: build.xml
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.jar.JarFile.<init>(JarFile.java:13smilie
at java.util.jar.JarFile.<init>(JarFile.java:80)
at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:526)
at sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java:491)
at sun.misc.URLClassPath$2.run(URLClassPath.java:287)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(URLClassPath.java(Compiled Code))
at sun.misc.URLClassPath.getLoader(URLClassPath.java(Compiled Code))
at sun.misc.URLClassPath.getResource(URLClassPath.java:162)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:675)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:23smilie
at java.lang.ClassLoader.loadClass(ClassLoader.java:514)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:441)
at java.lang.ClassLoader.loadClass(ClassLoader.java:446)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:142)
at
org.apache.tools.ant.util.JavaEnvUtils.<clinit>(JavaEnvUtils.java:125)
at org.apache.tools.ant.Main.runBuild(Main.java:567)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
import-bot (20212) [Avatar] Offline
#2
Re: ant works, but I get a Zip Exception beforehand
[Originally posted by ehatcher]

Its really best to post general Ant issues to the Ant user e-mail list. This
forum is really for errata and questions about our book. I'm not sure what
this problem is - and you'll definitely have better luck on the user list with
thousands more eyes seeing it and helping.