title: Which Java compiler is used by Eclipse?
body: <p>I have installed my own JDK 8 at folder Java\jdk1.8.0_152. Eclipse allows us to specify the Java compiler from Window/Preferences/Java/Compiler. If I specify the compiler version 1.8 (see below), which compiler is actually used by Eclipse, my own installed JDK located at Java\jdk1.8.0_152 or Eclipse's own bundled JDK? What's the difference between these two compilers?</p>
  
  <p><a href="https://i.stack.imgur.com/pEnhK.png" rel="noreferrer"><img src="https://i.stack.imgur.com/pEnhK.png" alt="enter image description here"></a></p>
  
  <p>Please correct me if I am wrong. My second question is that when we specify installed JREs for Eclipse (Window/Preferences/Java/installed JREs), we must specify our own installed JREs, because Eclipse does not include any JRE. Am I right?</p>
  
  <p><strong>Note</strong>, this question is <strong>not off-topic</strong> due it does not ask to recommend or find a book, tool, software library, tutorial or another off-site resource, but rather the meaning of a specific compiler setting. Does it switch the compiler, does it delegate the setting to the JDK compiler (so that the meaning can be found there) or does it mean something else? To produce the same bytecode on two different computers, you need to know that.</p>