• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

making jar with manifest

 
gaurav chaudhary
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Rahul JG
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this:
Manifest-Version: 1.0
Main-Class: zzz.class
Java-Bean:True
Space in Manifest-Version:1.0 was missing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic