How do I make a .jar file

I want to put 4 classes and a data file into one java archive. I know I have to make a manifest file and put the main class in it. This is the one I made...

Manifest.mf:Manifest-Version: 1.0

Main-Class: Main

(creative name huh)

and I use this command line to make the jar file

jar cvfm Start.jar Manifest.mf .

but I get an error that says "Failed to load Main-Class manifest attribute fromblah blah blah"

[455 byte] By [Galm_1a] at [2007-11-27 5:16:16]
# 1

> but I get an error that says "Failed to load Main-Class manifest attribute from blah blah blah"

Is this the error you get when you try to run the application from the jar? Look inside the jar (you can use a zip utility) -- what are the contents? Is Main.class in there?

Also, make sure your manifest.mf's last line ends with a new-line. JAR is picky about that. I usually throw in a few extras.

Hippolytea at 2007-7-12 10:38:49 > top of Java-index,Java Essentials,New To Java...
# 2
.
kdajania at 2007-7-12 10:38:49 > top of Java-index,Java Essentials,New To Java...
# 3
Oh now how was I supposed to know to put a newline in there. Lol. Thank you!
Galm_1a at 2007-7-12 10:38:49 > top of Java-index,Java Essentials,New To Java...
# 4
> Oh now how was I supposed to know to put a newline in there. It's ultimately a UNIX thang.
Hippolytea at 2007-7-12 10:38:49 > top of Java-index,Java Essentials,New To Java...