JAR: - Could not find main class

I'm sorry, I know this issue has been posted before but I am a bit confused with my situation.

After making a jar on my computer, I run it, and the program loads and runs perfectly.

However, when I try the jar on someone else's computer, it doesn't work, and gives the "could not find main class" message. The other computer has JRE but not JDK, so I don't know if that makes a difference.

Anyways, my main class file is located in a package called hw2, and the whole project is located in a folder called HW2. So my class file is located in something like C:\School\HW2\hw2\Main.class.

My Manifest.txt file is located in the \School\HW2 directory and has the following with a new line at the end:

Main-Class: hw2.Main

At the command prompt, I go to my C:\School\HW2 directory and I type the following to create the jar:

jar cvmf Manifest.txt test.jar hw2\*.class

My jar file has the following contents:

META-INF/

META-INF/MANIFEST.MF

hw2/Bank.class

hw2/GUIInterface.class

hw2/Main.class

Did I write the manifest.txt file correctly? Am I in the right directory when creating the jar file? Am I executing the jar command wrong? How come it works on my computer but not on someone else's?

[1282 byte] By [kevrocksa] at [2007-10-2 0:29:32]
# 1
Check what version of the JRE the other guy has, versus yours. Maybe your app relies on version 1.5 (5.0) or 1.4, but the other guy has an older and incompatible installation.
warnerjaa at 2007-7-15 16:43:59 > top of Java-index,Java Essentials,New To Java...
# 2
Are you certain you're executing the jar in the same way on both machines?For example, are you sure you're not executing the unjarred class files when you run on your local machine?
paulcwa at 2007-7-15 16:43:59 > top of Java-index,Java Essentials,New To Java...
# 3
Post the command that you use to execute the jar'd program - the command that works on one machine but not the other.
ChuckBinga at 2007-7-15 16:43:59 > top of Java-index,Java Essentials,New To Java...
# 4
Ah ok, it turns out that it only works on 1.5 JRE's and not on 1.4's. Thanks for the help!
kevrocksa at 2007-7-15 16:43:59 > top of Java-index,Java Essentials,New To Java...