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
Author

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 zzz.mf and java class I want to add is zzz.class. The manifest file code is
Manifest-Version:1.0
Main-Class: zzz.class
Java-Bean:True
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.mf zzz.class
thanks in advance
[ November 27, 2003: Message edited by: gaurav chaudhary ]
[ November 27, 2003: Message edited by: gaurav chaudhary ]

gaurav
Rahul JG
Ranch Hand

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


Rahul
 
Consider Paul's rocket mass heater.
 
subject: making jar with manifest