The error states Error main method not found in class
. Please define the main method as:
public static void main(String[] args)
.
Eclipse was working for me a few days ago, but now it just gives me that message
an example would be
public class Test {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello World");
}
}
First clean your project Using
Project-->Clean
and then build it again.Also make sure that your build path is properly set.