I want to create a simple java class, with a main method, but when I compile my code, I get this error message :
Error: Main method not found in class
I had this issue just now. This error came up because the JRE file that i switched out didn't had the full library. After I corrected/added the right JRE system library the problem went away.