osgaldor Storm wrote:Thank you. I do understand that, but my question is more about how to identify the main method in a class named Main.
Short answer. The main() method takes a
String array for parameters, and is public, static, and returns a void.
Longer answer. Assuming that you mean the location of the main method of the application, then that would depends on how the application is executed. If a starting class file is specified, then that is the class where the main() method is. If a starting jar file is specified, then the main() method is in a class in that jar file. And the class in that jar file is determined by the manifest file.
Henry