title: How to reference a different Java project in Eclipse
body: <p>I have Project1 and Project2. Project1 is dependent of Project2.
  I am sort of tired that every time I make some code changes in Project2, I have to Export Project2 JAR file, and copy it into lib folder of Project1.</p>
  
  <p><strong>Is there a way to achieve this automatically? Or, is there any other way to let know Project1 that Project2 had some changes?</strong></p>
  
  <p>In Build Path of the project, there is a way to specify references to other projects in Workspace, but this doesn't seem to do anything? What does it actually do?</p>
  
  <p>I was reading somewhere that I can use Deployment Properties to automatize this process, but I can't find it.</p>
  
  <p><strong>UPDATE:</strong>
  Uh, I am C# developer and have some experience in Java development (mostly Android development), I might ask stupid questions, so please bear with me...</p>
  
  <p>Project1 is standard Java Project (Run on client's machine, uses swing, etc..).
  Project2 is Dynamic Web Project (for to me unknown reason). The only thing it does is calling webservice (third project I don't need to worry about) and passing result back to Project1. Project2 contains those Axis2 webserviceStub.java files... Every know and then, I have to recreate these stub files then I have to export JAR file and move it to Project1. Project2, even though it is Web Project, it is actually code that runs on client.</p>
  
  <p>Just simple project referencing in Build Path doesn't work for me.</p>
  
  <p>Thanks</p>