File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes why do we need to clean and build ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "why do we need to clean and build ?" Watch "why do we need to clean and build ?" New topic

why do we need to clean and build ?

Mohan Mehra
Ranch Hand

Joined: Jul 28, 2011
Posts: 73
why do we need to clean and build , not doing so will result in error called "Duplicate component" especially after doing changes in the code and trying to refresh in the UI in jsp or jsf
Marcos Silvestri
Ranch Hand

Joined: Dec 06, 2009
Posts: 62

Maybe this question is not in the correct forum since it is a more general question, not a JSF.

From the Eclipse documentation web site, I got this:


Clean projects published on the server

You can use the clean option available in the Servers view to remove any invalid resources from the server before doing a full republish. This helps remove by-products generated as a result of the publishing process. When you find there is old code or an invalid state of code running on the server, try using this clean option to see if this helps remove these invalid states from the server.




Build is something more widely known, it constructs the whole deployment, in the correct binary format, ready to be run/deployed on the OS/server.

When doing Microsoft programming in Visual Studio, if I am not wrong, we never have to clean anything, though I suspect that is a process that happens behind the curtains for us.

I hope it helps!

DJ aspirant, Engineering undergraduate, Tokusatsus addicted, fond of English language and Asia's, Buddhist, blogger, etc. I'll need to insert all these attributes in a Java class and manage to create methods for handling my overwhelming life
I agree. Here's the link:
subject: why do we need to clean and build ?
It's not a secret anymore!