title: Creating a Batch File to Set Path in Java
body: <p>I have installed JDK 1.7.0_17 on my windows7 32 bit machine and created a batch file set java path but it doesn't work.</p>
  
  <p>I have installed jdk under c:\program files.... and need to run java from E: and created batch file under E:\ as follows:</p>
  
  <pre><code>set path="C:\Program Files\Java\jdk1.7.0_17\bin";
  </code></pre>
  
  <p>I got the following exception whenever I run the .bat file.</p>
  
  <pre><code>PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32
  \WindowsPowerShell\v1.0\
  </code></pre>
  
  <p>What is the mistake in my code?</p>