Home > Eclipse > Difference between refresh and clean in Eclipse

Difference between refresh and clean in Eclipse

If you modify or add new files outside Eclipse the file system will often be out of synch in Eclipse and new files may not show up in the Eclipse project tree. To synch the Eclipse Project select the project and select File > Refresh (or F5), or right-click on the project and select Refresh from the popup menu. Then do a clean build by selecting Project > Clean, selecting the project, and clicking OK.

  • Refresh rereads the sourcefiles to see if there are changes made outside Eclipse and compiles the files that were changed, not all of them.
  • Clean removes all compiled classes and forces recompilation of the entire project (or workspace depending on what you select to be cleaned).
Advertisements
Categories: Eclipse
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: