title: Java cannot find or load main class?
body: <p>I cannot resolve the current issue I am experiencing with Java.
  I am familiar with PHP/MySql, but <i>not</i> with Java.</p>
  
  <p>Here is my <b>Java code:</b></p>
  
  <pre><code>package day1.examples;
  
  public class MyFirstClass
  {
      public static void main(String[] args)
      {
          System.out.println('Hello World');
      }
  }
  </code></pre>
  
  <p><b>Problem:</b> When I go to run the program as Java, I receive the following warning:</p>
  
  <p><a href="https://i.stack.imgur.com/BgnX3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BgnX3.png" alt="enter image description here"></a></p>
  
  <p>Then, I am receiving the following error in my console: <code>Error: Could not find or load main class day1.examples.MyFirstClass</code>
  <a href="https://i.stack.imgur.com/arEFb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/arEFb.png" alt="enter image description here"></a></p>
  
  <p><b>Question:</b> Why is the above code (which I assume is appropriate) not working? Furthermore: Why am I receiving errors?</p>
  
  <p><b>Please note:</b> This is my first day using Java</p>
  
  <p><b>EDIT (problems):</b><a href="https://i.stack.imgur.com/dMoJ5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dMoJ5.png" alt="enter image description here"></a></p>