|
Executable jar file,Main-class manifest,Error: Can't Find Main class
I have a file called piggybankrun. It contains five(5) source files(including one called PiggyBankMain.class, which has only the class title and public static void main(String[])), and a manifest file. The manifest file has a single line of code: "Main-Class: PiggyBankMain" I typed a carriage return after. I am using the cmd.exe to put the jar file together. After getting to the 'bin' folder I type:
...>jar cfm f:\piggybank.jar f:\piggybankrun\manifest.mft f:\piggybankrun\*
It creates a .jar file successfully. I double click on the .jar file and it says: "Could not find the main class. Program will exit."
If you could, please explain where I may have screwd up. If I left out some information you need please ask. Thanks.
PS: If it matters I'm using a JFrame that pops up. Thanks again.
|