Noona
Noona

Reputation: 643

cleaning a project and regeneratig class files in eclipse

After I clean a project in eclipse I don't see the class files generated in the output folder "bin" although there's no build error, what can I do to make it regenerate the class files?

thanks

Upvotes: 7

Views: 7569

Answers (3)

Vinda
Vinda

Reputation: 223

To generate these .class files manually, which are lost after cleaning the project, uncheck build automically which is under Project and then right click on your project and select build project which will regenerate your lost .class files

Upvotes: 0

Fernando Briano
Fernando Briano

Reputation: 7768

Under the "Project" menu, see if the option "Build Automatically" is checked.

Edit: Have you checked this on Eclipse or on a file browser? Sometimes Eclipse takes a long time to refresh changes in the file system. Force a refresh by right clicking the bin folder and clicking on "Refresh" on the contextual menu.

Edit: Check your build path, try reconfiguring it from scratch, I don't know if this can help, but who knows...

Upvotes: 0

dty
dty

Reputation: 18998

It might be that your project is configured to write classes to somewhere other than ./bin

Upvotes: 1

Related Questions