New Java programmers often encounter these messages when they attempt to run a Java program.
Error: Main met
If you are running the correct class and the main is properly defined, also check if you have a class called String defined in the same package. This definition of String class will be considered and since it doesn't confirm to main(java.lang.String[] args)
, you will get the same exception.
Suggestion is to never hide library java classes in your package.