Did you create a Java Project, rather than a generic "Project"?
Did you not put the .java files inside the "src" folder within your project?
Are you lacking a proper main method, with the correct syntax?
public static void main(String args[]) {
...
}