title: How do I use environment variables in an Eclipse .classpath file?
body: <p>In Windows I have an environment variable EXTERNAL_LIB_ROOT that points to C:\Program Files\MyExternalLibRoot. On another machine, it may point to C:\ExternalLibs.</p>
  
  <p>In an ant build.xml file I would use:</p>
  
  <pre><code>&lt;pathelement location="${env.EXTERNAL_LIB_ROOT}/path/to/jar.jar"/&gt;
  </code></pre>
  
  <p>How do I set up an Eclipse project .classpath file to use the EXTERNAL_LIB_ROOT environment variable? Is it possible to have Eclipse auto generate the build.xml file using the environment variable as above?</p>