title: Why does Java not compile my code?
body: <p>Language: Java<br>
  JRE: jre1.8.0_144<br>
  IDE: Eclipse Oxygen Release (4.7.0)  </p>
  
  <p>Description: After I hit the "run" botton, the code did not compile and red text appear in the console.  </p>
  
  <p>Screenshot: <a href="https://i.stack.imgur.com/SrGh7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SrGh7.png" alt="Screenshot of the error."></a></p>
  
  <p>Here is the code:  </p>
  
  <pre><code>package chapter3.project2;
  import java.util.*;
  
  public class MetricConversion {
  
      public static void main(String[] args) {
          System.out.println("WTF Eclipse?");
      }
  }
  </code></pre>
  
  <p>error message:  </p>
  
  <pre><code>Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
  at chapter3.project2.MetricConversion.main(MetricConversion.java:30)
  </code></pre>
  
  <p>It seems that no matter what I put in the main method, the error just kept popping up.</p>
  
  <p>Thank you.</p>