Missing classpath variable in eclipse project

I defined a classpath variable named shared_src in Eclipse in the section:

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

The variable points to the folder ( C:\some_source ). Now I am trying to link this source folder using this variable.

In the project properties, I go to:

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

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

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

+3
source share
1 answer

Go to window> Settings then General> Workspace> Related Resources and define your folder here. Then you can use a specific variable in the project.

+5
source

Source: https://habr.com/ru/post/1383893/


All Articles