title: Environment variable problem using java
body: <p>Steps using runtime api</p>
  
  <ol>
  <li><code>echo %PATH%</code> (output will be something like <code>"c:\windows\system32;d:\test"</code>)</li>
  <li>execute <code>ping</code> or any system command, the output will be success</li>
  <li>delete one value for the path like <code>d:\test</code></li>
  <li><code>echo %PATH%</code> (output will be <code>"%system32%\system32;"</code>)</li>
  <li>Now if I execute the same command executed in step 2 like <code>ping</code>, then I get "command not found."</li>
  </ol>
  
  <p>Plesae note:- all steps executed in same java process </p>
  
  <p>Anybody suggest whats going wrong in this process</p>