“Could not find the main class: XX. Program will exit.”
问题 I have managed to run my jar file with a command prompt, but its always giving me a reponse of Could not find the main class: XX. Program will exit. Please help me out, thanks. 回答1: See Setting an Application's Entry Point If you have an application bundled in a JAR file, you need some way to indicate which class within the JAR file is your application's entry point. You provide this information with the Main-Class header in the manifest, which has the general form: Main-Class: classname The