Eclipse Error: Could not find or load main class [duplicate]

This just happened to me today after updating my JRE. I cleaned the project and it started working again.

Project -> Clean will remove any existing class files and completely rebuild the project. There’s more information on Eclipse’s clean function here.

Leave a Comment