3

I defined a classpath variable called shared_src in Eclipse under:

Window->Preferences->Java->Build Path->Classpath Variables

The variable points to a folder (C:\some_source).Now, I try to link that source folder using this variable.

In project properties, I go to:

Java Build Path -> Source -> Link Source and click on the Variables button.

The list of variables that shows up in the "Select Path Variable" pop-up does not include the shared_src variable that I defined initially.

My question is, is the shared_src variable supposed to be available for linking source folders, and if so, how can I change my Eclipse setup to be able to use the variable?

1 Answer 1

6

Go to Window > Preferences then to General > Workspace > Linked Resources and define your folder here. Then you can use defined variable in project.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.