title: How to change NetBeans Java Project Runtime?
body: <p>How can I change the Projects <strong>Runtime Platform</strong>?<br>
  (standard NetBeans [8.1] Java Project [Java Application])</p>
  
  <p><a href="https://i.stack.imgur.com/jH8G9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jH8G9.png" alt="enter image description here"></a></p>
  
  <p>Details:<br></p>
  
  <ul>
  <li>using Ubuntu with NetBeans 8.1</li>
  <li>I have installed JDK 1.6, JDK 1.7 + JDK 1.8</li>
  <li>My projects platform is Java 6.</li>
  <li>My systems default Java is Java 7. </li>
  <li>NetBeans-IDE was started with Java 8.</li>
  </ul>
  
  <p>When I run the project via the IDE (<strong>Run project</strong>), the Project-Platform is used (which is Java 6).</p>
  
  <p>I cannot change the <strong>Runtime Platform</strong>!<br>
  It's always: <strong>Project Platform</strong></p>
  
  <p>I tried to <code>Manage Platforms...</code>, but I still <strong>can't change the value of the Runtime Platform-ComboBox</strong>.</p>
  
  <p><strong>EDIT:</strong><br>
  As I wrote in the comments, I don't want to change the Project-Platform. 
  The project should be compiled with <strong>Java 6</strong> but run with <strong>Java 8</strong> (when click on <strong>Run project</strong>).</p>
  
  <p>What I want is:<br>
  Project-Platform = Java 6 (used to compile),<br>
  Runtime-Platform = Java 8 (used to run).</p>