Unable to create JAR file

Hello, all.

I created a manifest file calledmanifest.txt for creating JAR file, which contains following line:

Main-Class: photoFusion.GUI.MainFrame

And I carefully added a new line at the end of that file.

So when I at the directory which contains:

manifest.txt

photoFusion/

Data/

I typed

jar cvfm PhotoFusion.jar manifest.txt ./

following error appears:

java.io.IOException: invalid header field

at java.util.jar.Attributes.read(Attributes.java:393)

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:123)

Can anybody give me a hand? thanks a lot!!

at sun.tools.jar.Main.main(Main.java:903)

[829 byte] By [loudkinga] at [2007-10-2 15:27:30]
# 1
I can't duplicate the error. Create the jar without specifying the manifest file - if that works, recreate manifest.txt and try again.
ChuckBinga at 2007-7-13 14:45:53 > top of Java-index,Desktop,Deploying...
# 2
remember to end the manifest file with a .mf extension
Node_King_Ja at 2007-7-13 14:45:53 > top of Java-index,Desktop,Deploying...