title: Eclipse: Use environment variable for external jar location
body: <p>After hours of unsuccessful googling, I ask you:</p>
  
  <p>Situation: </p>
  
  <p>My Eclipse Project uses "nedded.jar" so I added it to the build path. No problem. </p>
  
  <ul>
  <li>C:/dev/development/my_needed/nedded.jar</li>
  </ul>
  
  <p>But the location of "nedded.jar" is relative to the environment variable DEVELOPMENT ( =C:/dev/development/ ) and therefore may change. So, I need my Referenced Library path to be: </p>
  
  <ul>
  <li>%DEVELOPMENT%/my_needed/nedded.jar</li>
  </ul>
  
  <p>I could not find the syntax to accomplish that. Ideas?</p>
  
  <p>EDIT:</p>
  
  <p>Maybe I did not make myself clear enough: This Project is developed by MSVisual Studio(C++) and Eclipse(Java). Both are started from the Console. A prior executed script sets 3 major variables: DEVELOPMENT, RUNTIME, SOURCES to certain, changing paths. </p>
  
  <p>If I then start Eclipse from this shell, the path to my external libs shall be defined by %DEVELOPMENT%\my_needed\nedded.jar.</p>
  
  <p>I have found a half way solution (somewhere): added a new folder --> advanced --> link to alternate location (linked folder).</p>
  
  <p>this adds you an entry in your .project, which I also get, when I checkout my project:</p>
  
  <pre><code>&lt;linkedResources&gt;
     &lt;link&gt;
     &lt;name&gt;lib/RXTXcomm.jar&lt;/name&gt;
     &lt;type&gt;1&lt;/type&gt;
       &lt;locationURI&gt;PARENT-4-PROJECT_LOC/Development/rxtx/RXTXcomm.jar&lt;/locationURI&gt;
     &lt;/link&gt;
  &lt;/linkedResources&gt;
  </code></pre>
  
  <p>Nice so far, but it still does not depend on %DEVELOPMENT%. What I need is: 
  %DEVELOPMENT%/rxtx/RXTXcomm.jar</p>
  
  <p>Hope this is now clearer.</p>