Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Exception in thread "main" java.util.zip.ZipException: The system cannot find

15 views
Skip to first unread message

Fred Zimmerman

unread,
Mar 25, 2002, 10:38:43 PM3/25/02
to
Exception in thread "main" java.util.zip.ZipException: The system cannot
find
the file specified
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)

What does this mean. My application class file runs fine
(GiftShop.class), only the .JAR (generated via Ant utility) causes the
error above. It uses a manifest file that specifies the main() class.

Manifest-Version: 1.0
Main-Class: /source/java/21days/ch15/classes/GiftShop.class
Created-By: Ant 1.4.1

giftshop.jar:
Storefront.class
Item.class
GiftShop.class
Manifest.mf

Paul Lutus

unread,
Mar 25, 2002, 11:08:27 PM3/25/02
to
Fred Zimmerman wrote:

> Exception in thread "main" java.util.zip.ZipException: The system cannot
> find
> the file specified
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(Unknown Source)
> at java.util.jar.JarFile.<init>(Unknown Source)
> at java.util.jar.JarFile.<init>(Unknown Source)
>
> What does this mean. My application class file runs fine
> (GiftShop.class), only the .JAR (generated via Ant utility) causes the
> error above. It uses a manifest file that specifies the main() class.

Does it?

>
> Manifest-Version: 1.0
> Main-Class: /source/java/21days/ch15/classes/GiftShop.class

1. Why are you using forward slashes?

2. Is ".class" part of your class name?

3. It is most likely that, barring any other errors, you really wanted this:

Main-Class: source.java.21days.ch15.classes.GiftShop

But I seriously doubt that this is the true path to the class. File
pathnames are not classpaths.

--
Paul Lutus
www.arachnoid.com

0 new messages