I am getting Java: “Could not find the main class. Program will exit” when i am running compiled jar files.
What causes this error and how do I avoid it?
I am using Netbeans 6.9.1 IDE and java 1.6
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Maybe your manifest is malformed. Usually the programmer dont deal with this files when using an IDE but maybe you found a bug.
Read this documentation:
http://docs.oracle.com/javase/tutorial/deployment/jar/manifestindex.html
Take a deep look to “Setting an Application’s Entry Point” section. Maybe that’s the problem.