title: Link java source from other project?
body: <p>I'm using the same java class in one of my main application, and in another project.
  This class is still in development and I therefor cannot compile it always as a jar and add it as a library.</p>
  
  <p>How can I link this *.java class in another project to that it is used as if it belongs directly to that project?</p>
  
  <p>I tried going to project properties > java build path > link source. I can make reference to a source folder of another project. Fine, BUT always eclipse complains about wrong package path. The strange thing is, that the shared java class in the new project is placed unter <code>(default package)</code> whereas I would it expect to just be displayed with the same path as in the main project. And Eclipse claims to remove the package path.
  If I do so, of course, the main project will complain about a missing path there.</p>
  
  <p>What am I doing wrong? How can I synchronise this?</p>