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
Right click on the class name (which you are trying to run)->Run As->Run Configurations->Under Main Class Tab
Write your main class name and hit on Run.