I know there are many duplicates of this question, but I have looked at them all, and none of them have solved the issue.
I am trying to run a class that has a main
Had the same problem, struggling with it for a while: couldn't find main class.
I did Project -> Clean -> Clean all Projects
Cleaned everything, and tada, it compiled!