title: Difference between Deployment Assembly and J2EE Module Dependencies in Eclipse
body: <p>When using a Eclipse 3.7 Indigo for Java EE Developers, there is something called <strong>Deployment Assembly</strong> . I could find on google and understood that it is similar to the  <strong>J2EE Module dependencies</strong> where in we could select the jar and which goes and sits in the EAR folder or in WEB-INF/lib in case of WAR. Now the doubt I have is,</p>
  
  <p>I have a JavaProject <strong>Dependencies</strong>. I have added all the dependent Jars via <em>classpath</em> variable. Now the <strong>Dependencies</strong> Project is added as dependency to my Web Project <strong>TestWebProject</strong>. The compilation of the Web  Project is correct but during runtime I get an error because some jar was not found. I could fix this my include jar in Deployment Assembly of <strong>Dependencies</strong> Project, which is a standalone project. </p>
  
  <p>The question is that, why I had to fix the jar in deployment assembly since ,first, its a standalone project and second is if I would not have this deployment assembly , how could this be fixed?</p>