title: Setting Eclipse STS to use Java 8 to compile java code of my project
body: <p>I'm very surprised how hard is it to operate Eclipse - almost everything I try to do ends with SE question.</p>
  
  <p>I have a new project which consists of about two files and some external libraries. This project can by compiled manually by a command line script:</p>
  
  <pre><code>rem List all java files in jar/ directory to text file
  dir /s /B jar\*.java &gt; sources.txt
  rem make javac compile those files and put the .class files in bin directory
  javac -cp %PZCLASSPATH% -d bin @sources.txt
  </code></pre>
  
  <p>I use java 8 JDK for compiling the project. I am not even dreaming of Eclipse ever building the same way (or building properly at all), but at least I'd like to make it use Java 8 for code validation, as to avoid errors for code incompatible with old java versions:</p>
  
  <p><img src="https://i.stack.imgur.com/NknVM.png" alt="image description"></p>
  
  <p>I looked into project properties and tried to find something to set-up:</p>
  
  <p><img src="https://i.stack.imgur.com/ZvGjG.png" alt="image description"></p>
  
  <p>As you can see, Java 8 is kinda missing in that menu. In NetBeans, I remember just changing the JDK to desired version. Probably better approach than hardcoded menu.</p>
  
  <p>Also the menu doesn't even seem to have much effect, as I see <code>The import java.util.Arrays cannot be resolved</code> error for <code>import java.util.Arrays;</code> command:</p>
  
  <p><img src="https://i.stack.imgur.com/oBbaX.png" alt="image description"></p>
  
  <p>So it's not using even the Java 7 now. Note that other projects work fine in the IDE, but this one has been handcrafted so is problematic.</p>
  
  <p>Is there another way of configuring it?</p>