eclipse doesn't compile the project

Maybe Eclipse's workspace files have become corrupted. Restart Eclipse and choose a new workspace folder (or choose Switch workspace from the menu). Then import the project files into a new project.


I tried all the solutions here, but here's what worked for me.

  1. First, remove the project from eclipse.

  2. Then, in your project folder, delete the 2 files that eclipse creates. They're hidden, but they're called .project and .classpath.

  3. Finally, add the project back into eclipse and eclipse will recreate those 2 files and a new configuration for your project.

My specific issue was that it a project that was missing a Java Builder because it thought it was a scala project. The only way for me to reset this was by removing the project, deleting the 2 files, and adding it back in.


Try deleting the run configuration and remaking.

If that doesn't work, open the class, ctrl+f11 to run. That will force Eclipse to update its classpaths & rebuild its main indexes.

To delete the configuration: - Menu -> Run -> Run Configurations. - Select your configuration - Press delete or use the delete icon