Error when trying to run class file from Command Prompt
<p>I have this class stored in 
C:/CODE/src/</p>

<p>I open up the CMD and type in</p>

<pre><code>C:/CODE/src&gt;java -cp . Hello
</code></pre>

<p>And then it gives me this error</p>

<pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: Hello &lt;wrong name: src/hello&gt;
</code></pre>

<p>The java version is "1.7._02"
I do not know what else to do?
It complies and runs in eclipse IDE but not from the Command Console?</p>

<p>What should I do to rectify this problem? </p>

<pre><code>public class Hello {

        public static void main(String[] args) {
            System.out.println("Hello");

        }

}
</code></pre>

<p>Environment Variables</p>

<p>JAVA_HOME = C:\Program Files\Java\jdk1.7.0_02\bin\;</p>

<p>PATH = C:\Program Files\Java\jdk1.7.0_02\bin\;</p>
