title: Main method not found even if I've declared it
body: <p>I want to create a simple java class, with a main method, but when I compile my code, I get this error message :</p>
  
  <blockquote>
    <p>Error: Main method not found in class errors.TestErrors, please define
    the main method as:    public static void main(String[] args)</p>
  </blockquote>
  
  <p>This is the source code :</p>
  
  <pre><code>package errors;
  
  public class TestErrors {
      public static void main(String[] args){
          System.out.println("hello");
      }
  }
  </code></pre>
  
  <p>Why I'm seeing this error, as you can notice I've alreader declared the main method !</p>