Reputation: 24554
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
Reputation: 12538
Yes, it is possible. You have 2 options:
1. "Add External Class Folder" containg binaries (.class) files
2. "Link Source" folder
Upvotes: 5
Reputation: 3800
You can use File -> New -> Folder
and activate the Advanced
-Button to link to a folder.
Upvotes: 2