title: Eclipse 4.7.3a and Java 10 Error: Could not find or load main class
body: <p>I just installed a new Eclipse on my laptop with Windows 10 pro. Here is the Eclipse Version:</p>
  
  <pre><code>Eclipse Java EE IDE for Web Developers.  
  Version: Oxygen.3a Release (4.7.3a) Build id: 20180405-1200
  </code></pre>
  
  <p>My java version:</p>
  
  <pre><code>java version "10.0.1" 2018-04-17  
  Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)  
  Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)
  </code></pre>
  
  <p>My test code:  </p>
  
  <pre><code>package questions;  
  
  public class TestMain {
  
  public static void main(String[] args) {
      System.out.println("test");
      }
  }
  </code></pre>
  
  <p>Command line execution under the test\bin directory created by Eclipse  </p>
  
  <pre><code>java questions.TestMain
  </code></pre>
  
  <p>works fine. </p>
  
  <p>But I can't get it work with in the Eclipse. Using "run as a java application" with </p>
  
  <pre><code>C:\Program Files\Java\jre-10.0.1\javaw.exe
  </code></pre>
  
  <p>always produces the following error:</p>
  
  <pre><code>Error: Could not find or load main class questions.TestMain  
  Caused by: java.lang.ClassNotFoundException: questions.TestMain
  </code></pre>
  
  <p>Any help is appreciated. </p>