running java program from command line with classpath
<p>Most of the time when i am learning something i am running java program from commandline.</p>

<p>now my problem is little complecated.</p>

<p>i am running Simple java program from command line. But i need CLASSPATH variable in environment variables. when i am adding CLASSPATH variable my program is giving me error.
The error is classNOtFoundException. Means when i am running program it will check .class file and it is going in my classpath variable and that is obvious it will not found and it will fire exception. 
i am always working line this. this problem occurs after i have formatted my PC. but i am using same OS and same jdk as it was.</p>

<p>Any body have faced this type of issue?
it is not working with following Screen shot.
<img src="http://i.stack.imgur.com/3JUha.png" alt="enter image description here">
<img src="http://i.stack.imgur.com/3ZKxv.png" alt="enter image description here"></p>

<p>Working with following screen shot
<img src="http://i.stack.imgur.com/3ZKxv.png" alt="enter image description here"></p>

<p>Following is my desktop screen shot and all things are working with classpath and without classpath(Means i can run simple Program no matter if classpath is there or not.).</p>

<p><img src="http://i.stack.imgur.com/nnRfQ.png" alt="enter image description here"></p>
