Unable to run HelloWorld.java from command prompt
<p>I got a strange problem in my windows 7 system running jdk1.6.0_33</p>

<p>When I try to run a simple java program from command prompt, it opens a new window (something like java frame) and suddenly disappears. There is no result shown on command prompt also I am unable to terminate the process (using Ctrl+C) or close command prompt after this. A java process is created each time I do this. I tried to kill process using Task Manager, but that too didn't work.</p>

<p>I am able to run the same program using eclipse.
Here is my program</p>

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

<p>Environment variables are set as follows:</p>

<pre><code>Path=C:\Program Files\Java\jdk1.6.0_33\bin
classpath=.
</code></pre>

<p>Commands I used are,</p>

<pre><code>javac HelloWorld.java
java HelloWorld
</code></pre>

<p>Why is this happening? Thanks in Advance.</p>
