my dog learned polymorphism
The moose likes Java in General and the fly likes making jar  with manifest Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "making jar  with manifest" Watch "making jar  with manifest" New topic

making jar with manifest

gaurav chaudhary
Ranch Hand

Joined: Jun 24, 2002
Posts: 64
i am making a jar file and want to add my manifest file to it. The manifest file name is and java class I want to add is zzz.class. The manifest file code is
Main-Class: zzz.class
When I am giving the command to create the jar file it is giving the following error.
invalid header field
The syntax is:
jar cfm abc.jar zzz.class
thanks in advance
[ November 27, 2003: Message edited by: gaurav chaudhary ]
[ November 27, 2003: Message edited by: gaurav chaudhary ]

Rahul JG
Ranch Hand

Joined: Jun 05, 2002
Posts: 44
Try this:
Manifest-Version: 1.0
Main-Class: zzz.class
Space in Manifest-Version:1.0 was missing.

I agree. Here's the link:
subject: making jar with manifest
It's not a secret anymore!