Error: Could not find or load main class hello.world.HelloWorld
<p>I am trying to run this project called "hello user". I am new to Java, so wrote a simple program that takes your name, and displays "Hello ". while Running it, I get the following error:</p>

<pre><code>run:
Error: Could not find or load main class hello.world.HelloWorld
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)
</code></pre>

<p>But when I run file <code>HelloWorld.java</code>, it does it fine</p>

<p>I am doing this on Netbeans IDE 7.2</p>
