If you have set the CLASSPATH to \Java_Programs\
then the below will work
C:\ java Example
or try this..
C:\ java -cp D:\java_programs Example
Why to worry about things in which we dont have control, Why to worry about things in which we have control ! !
Joined: Feb 09, 2009
I guess the best way would be .
Go the command prompt
C:\ set classpath=<path of lib folder in your jdk ex. C:\Proram FIles\j2sdk 1.4.2\lib>;.;
The ;.; makes sure your this apth gets concanated to your existing class path.
ALso set the path in the same way but make it to pint to bin folder of jdk.
Hope it helps :-)
"The more I learn,the more,I get to know, is left to learn."