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 ]
posted 12 years ago
Try this: Manifest-Version: 1.0 Main-Class: zzz.class Java-Bean:True Space in Manifest-Version:1.0 was missing.