Change the Maniest File R no Dinner
Hay all,
Hope u all are fine...But iam not , this trouble is killing me :-( .
Actually i wanna run a jar file using
java -jar example.jar
Well u may say that i should modify the MANIFEST.MF fiel accordingly..Cool
I wrote aex.MF of my own like the one that follows
Main-Class: Test (say this is the class whis has the main method)
and at the command prompt i did
jar cvmf example.jar ex.MF Test.class
There are no packages involeved it jus a plain class
But the above command gives errors ;-( like
java.io.IOException: invalid header field
at java.util.jar.Attributes.read(Attributes.java:383)
at java.util.jar.Manifest.read(Manifest.java:167)
at java.util.jar.Manifest.<init>(Manifest.java:52)
at sun.tools.jar.Main.run(Main.java:124)
at sun.tools.jar.Main.main(Main.java:904)
Get me out of this trouble plss else i cant have my dinner....................:-(

