Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6880767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:00:58+00:00 2026-05-27T05:00:58+00:00

So, Eclipse and relative paths… What I want to achieve is to share the

  • 0

So, Eclipse and relative paths…

What I want to achieve is to share the project files with several users, where the exact location of the source can be different for each user.

I.e, the src for project MyProject could be at c:\version_control_foo\MyProject\src or c:\version_control_bar\MyProject\src or even X:\foobar\MyProject\src and the same project should work for all.

Heres what I’ve tried:
I set a variable C_TMP in Eclipse pointing to c:\version_control_foo with the idea that user #2 would start up Eclipse with a different setting for the variable. Then I created a linked source folder using the variable.

This created this entry in my .project file:

<linkedResources>
    <link>
        <name>C_TMP</name>
        <type>2</type>
        <locationURI>C_TMP</locationURI>
    </link>
</linkedResources>

<variableList>
    <variable>
        <name>C_TMP</name>
        <value>file:/C:/version_control_foo</value>
    </variable>
</variableList>

A change of the variable didn’t change anything, which makes sense since it seems the project copied the value of it.

Based on this question I guess I’ll be able to do it by having all src folders relative from the workspace location, but that’s not really a good solution.

I think maven will be able to handle this by generating Eclipse projects (right?) but I’d like to handle this with pure Eclipse and no special magic scripts.

Edit: This works just like I was hoping if I’m using it to add more libraries. Why won’t it work with my source folders?

Edit2: Some clarifications based on comments. The entire project with source folders and files are available in version control. But the actual path to those files are unique for each user. Checking out from version control doesnt involve any kind of copying to a local location that could be defined the same for all.

A linked source folder means I can define it to be relative to a variable. This variable could then be set for each user. Problem is, the value of the variable seems to be copied to the .project file and not go by the value set in Eclipse.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:00:59+00:00Added an answer on May 27, 2026 at 5:00 am

    Ok, I think I found what I needed. In Eclipse I can set a linked resource that I can use when defining linked source folders. This variable can change and the source folders will then change accordingly. If I can set the linked resource at startup somehow, then I’m all done.

    From this question

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

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I install antlr in my eclipse. And set antlr-code generator-output folder-project relative folder as
Eclipse project, I have Subversion set to ignore the bin directory, and also within
Eclipse is complaining about my Android project saying all my references to resources are
Eclipse and MyEclipse create new Java files with an extra blank line after the
Eclipse can be configured to ignore unavoidable generic type problems when setting the preferences
I installed eclipse with pydev plugin. I need to run my existing project on
Please help, I'm going slightly mad!! I'm using Eclipse-generated antfiles to build a project
I'm new to Eclipse-CDT, setting up a new project for the first time. I'm
I have an Eclipse project that I'm attempting to set up to build both
I have just set up a new Eclipse Java project. In this project I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.