Search code examples
javaeclipseworkspace

How to link project in eclipse


I have a java project and I want to develop it without replacing the source code from its place. I want to link my code to my workspace without replace physically?


Solution

    1. Select the Project you want to reference from on Package Explorer
    2. Right-click and go to Properties ( or hit Ctrl-Enter ).
    3. Under Projects in Java Build Path you can add another project which is currently open.

    If you want to override a class you can make a copy of it in your current project and move it further up in the classpath in Order and Export.