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
> 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