Search code examples
javaeclipse

What's the difference between `Eclipse/Project/Clean...` and `Eclipse/Project/Refresh (F5)`?


What's the difference between

"Eclipse/Project/Clean..."

and

"Eclipse/Project/Refresh (F5)"

I often have to "rebuild" my workspace that contains few inter-dependent projects, and I am unsure which is the best way to make a clean start?


Solution

  • As mentioned here

    Refresh analyses the source-files to check if any changes were made from outside Eclipse, and if so, compiles files that were changed.

    Clean on the other hand removes all compiled classes and forces recompilation of the whole project (or workspace).