New Java programmers often encounter these messages when they attempt to run a Java program.
Error: Main met
Other answers are doing a good job of summarizing the requirements of main
. I want to gather references to where those requirements are documented.
The most authoritative source is the VM
spec (second edition cited). As main
is not a language feature, it is not considered in the Java Language Specification.
Another good resource is the documentation for the application launcher itself: