Error: Could not find or load main class Hello2
<p>I'm just learning java and following a book.</p>

<p>I have a program written via text editor and run commands via cmd.</p>

<p>I've complied 1 program thru javac and executed thru java no problem. (Hello)
Then I modified that to add a comment to the class, named file Hello2.java. I compiled it with no problems, but upon execution, I receive this error: Could not find or load main class Hello2.</p>

<p>I have classpath and path set correct;y on environment variables.</p>

<p>Ideas?</p>

<p>UPDATE</p>

<p>Hello.java</p>

<pre><code>  public class Hello {
      public static void main(String[] args) {
          System.out.println("Hello, world!");
      }
  }
</code></pre>

<p>Hello2.java</p>

<pre><code>//Filename Hello2.java
//Written by 
//Written on 

public class Hello2 {
    public static void main(String[] args) {
         System.out.println("Hello, world!");
    }
}

/*This class demonstrates the use of the println() method to print the message Hello, world! */
</code></pre>
