title: Eclipse java SE 8 - javaSE 1.8 execution environment is missing
body: <p>I have installed <code>Java SE Runtime Environment 8u192</code> <a href="https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html" rel="nofollow noreferrer">https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html</a> on Windows 10, and made some setting changes in Eclipse:</p>
  
  <p>Window -> preferences -> java -> Installed JREs = jre1.8.0_192, </p>
  
  <p>to make it use the new java.</p>
  
  <p>When running this code:</p>
  
  <pre><code>package test;
  public class LocalDateExample {
      public static void main(String[] args) {
          System.out.println(System.getProperty("java.version"));
      }
  }
  </code></pre>
  
  <p>I get the output:</p>
  
  <blockquote>
    <p>1.8.0_192</p>
  </blockquote>
  
  <hr>
  
  <p>If I edit the code to:</p>
  
  <pre><code>package test;
  import java.time.LocalDate;
  public class LocalDateExample {
      public static void main(String[] args) {
          System.out.println(System.getProperty("java.version"));
          LocalDate localDate = LocalDate.now();
          System.out.println(localDate);
      }
  }
  </code></pre>
  
  <p>I get this error:</p>
  
  <blockquote>
    <p>LocalDate cannot be resolved to a type</p>
  </blockquote>
  
  <hr>
  
  <p><strong>Edit:</strong></p>
  
  <p>I believe that my problems comes from the fact, that Eclipse is missing Java 1.8 execution environment.</p>
  
  <p>I can not just select it, as suggested here:
  <a href="https://stackoverflow.com/questions/25391207/how-do-i-add-execution-environment-1-8-to-eclipse-luna">How do I add execution environment 1.8 to Eclipse Luna?</a>
  as it is missing completely.</p>
  
  <p><a href="https://i.stack.imgur.com/ZsGAZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZsGAZ.png" alt="Installed JRE"></a>
  <a href="https://i.stack.imgur.com/b534w.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b534w.png" alt="Execution environments"></a></p>
  
  <p>What can I do to add or select the environment?
  I am using Eclipse</p>
  
  <p>Helios Service Release 2
  Build id: 20110301-1815
  with no updates available. </p>