Problems running a java program from the command line interface
<p>I created a java program in Eclipse. When I run the program in Eclipse ("run as -> Java Application") the program runs fine and I have the correct output. However, when I try to run the program in the command line interface I got this error:</p>

<blockquote>
  <p>Exception in thread "main" <code>java.lang.NoClassDefFoundError</code>: <code>HelloWorld</code> (wrong name: helloworld/HelloWorld)
  Could not find the main class: HelloWorld. Program will exit.</p>
</blockquote>

<p>The class file is in directory bin and I try to run it with the command:</p>

<pre><code>java HelloWorld
</code></pre>
