title: Different results when compiling with command prompt and BlueJ
body: <p>I'm just starting Java ... again.
  I just made a simple program</p>
  
  <pre><code>class first
  {
      public static void main()
      {
          System.out.println("Hello!");
      }
  }
  </code></pre>
  
  <p>This runs perfectly fine in BlueJ but it gives an error during run-time when running from command prompt.</p>
  
  <p>This is the error
  <code>Exception in thread "main" java.lang.NoSuchMethodError: main</code></p>
  
  <p>It's because I didn't give <code>String args[]</code> in the <code>main</code> parameter list</p>
  
  <p>Till now, I used to give it subconsciously. I know that the string array contains all the parameter values when running but then why is it running in BlueJ?</p>
  
  <p>(BlueJ is a student-friendly Java editor and compiler)</p>