title: What is the difference between "system32\java.exe" and "Program Files\Java\jdk1.6.0_33\bin\java.exe"?
body: <p>I have just installed Java JDK 6u33 in Windows XP. Even though I didn't set the PATH environment variable, I am able to run <code>java -version</code> in command prompt.</p>
  
  <p>When I run this command <code>for %i in (java.exe) do @echo.   %~$PATH:i</code>, I get this output:
  <code>C:\WINDOWS\system32\java.exe</code></p>
  
  <p>When I check my PC, I found that there are 2 java.exe:<br/>
  1. <code>C:\Program Files\Java\jdk1.6.0_33\bin\java.exe</code><br/>
  2. <code>C:\WINDOWS\system32\java.exe</code></p>
  
  <p>May I know what is the difference between <code>system32\java.exe</code> and <code>Program Files\Java\jdk1.6.0_33\bin\java.exe</code>? Why only <code>system32\java.exe</code> is shown when I run <code>for %i in (java.exe) do @echo.   %~$PATH:i</code>?</p>
  
  <p>Do I still need to add <code>C:\Program Files\Java\jdk1.6.0_33\bin\</code> to my PATH environment variable?</p>