title: Difference between bin's java.exe and JRE's 'java.exe'
body: <p>I am new to Java. I have a confusion which interpreter is used to execute Java programs as I can see two <em>java.exe</em>, one inside the <em>bin</em> folder and the other inside JRE's <em>bin</em> folder.</p>
  <p>I want to add some details to clear my query:</p>
  <p>Suppose Java is installed in <em>C:\Program Files\Java\Jdk1.6</em>. Now, in this directory there is the <em>jre</em> folder, <em>bin</em> folder, and other folders as well, but let’s concentrate on these two. This <em>..\jre\bin</em> folder contains <em>java.exe</em> and the <em>..\bin</em> folder also contains <em>java.exe</em>. So, my concern is: Which Java interpreter is used to execute Java programs?</p>