Van Coding
Van Coding

Reputation: 24554

Eclipse - Linked package?

Is it possible in Eclipse to use a package that is not in the project folder, without copying it to the project folder? I want Eclipse to use everytime the newest files from a specifig folder.

For example:

PACKAGE A
-----------------------------
src
   package
      Client
          Client.java

PACKAGE B
-----------------------------
src
   package
      Gui
          Gui.java

Now, I want to use package.Client.Client from package.Gui.Gui, without making a copy of PACKAGE A inside of PACKAGE B. I just want to link to it. Can someone help me?

Upvotes: 1

Views: 2291

Answers (2)

home
home

Reputation: 12538

Yes, it is possible. You have 2 options:

1. "Add External Class Folder" containg binaries (.class) files enter image description here

2. "Link Source" folder enter image description here

Upvotes: 5

cuh
cuh

Reputation: 3800

You can use File -> New -> Folder and activate the Advanced-Button to link to a folder.

Upvotes: 2

Related Questions