Eclipse Java – Error: Could not find or load main class

Error: Could not find or load main class

I got this error when I tried adding foreign java files. To solve this error in my case, you just need to rebuild the workspace/project.

Project -> Build Project

More info from StackOverflow: http://stackoverflow.com/questions/7485670/error-could-not-find-or-load-main-class

Advertisements