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?

