when we create the jar file one error 'could not find main method' and manifest file not load main

why amd how we creat manifest file

when we create the jar file one error
Views: 447 | Community Opinion: 1



Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 

If the error message "cannot find main class" appears, it means that the Main-Class: line of the manifest file, names a class that is not present, or the name is not correct try to provide exact path. remember, that if your main class is MyApp.class, then only the MyApp word should appear on the manifest. remember too, to leave a blank line at the end of the manifest file






What do you think? Add your opinion/answer
*Name
*your opinion/answer: