Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

invalid header file while using jar for archiving

Tags:

java

jar

When i use this cmd line : jar cmf arshad.mf ars.jar *.class i get this error :

invalid header field name:Manifest-version

This is my manifest file :

Manifest-Version: 1.0
Main-Class:t

i made the manifest file with notepad in UTF-8 encoding - is there any problem with the manifest ?

like image 292
arshad Avatar asked Jan 07 '09 05:01

arshad


1 Answers

Add a space after the colons:

Manifest-Version: 1.0
Main-Class: t
like image 159
Adam Rosenfield Avatar answered Oct 22 '22 16:10

Adam Rosenfield