File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes [Eclipse] refresh vs clean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "[Eclipse] refresh vs clean" Watch "[Eclipse] refresh vs clean" New topic
Author

[Eclipse] refresh vs clean

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
What is the difference between refresh (select project, right click and refresh) and clean in Eclipse?

Thanks.
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
Refresh rereads the sourcefiles to see if there are changes made outside Eclipse.
Clean removes all compiled classes and forces recompilation of the entire project (or workspace depending on what you select to be cleaned).


42
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by Jeroen T Wenting:
Refresh rereads the sourcefiles to see if there are changes made outside Eclipse.
Clean removes all compiled classes and forces recompilation of the entire project (or workspace depending on what you select to be cleaned).


... but refresh also compiles the files.
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
Only files that were changed, not all of them.
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Thanks Jeroen.

Which one should we use?
geeksun wave
Greenhorn

Joined: Nov 01, 2010
Posts: 1
ankur rathi wrote:Thanks Jeroen.

Which one should we use?


In deferent conditions,use deferent option.

the other option is "Build Automatically",it can compile source file automatically when source file changes.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [Eclipse] refresh vs clean