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
SCJP 6
Why to worry about things in which we dont have control, Why to worry about things in which we have control ! !
Preet Prasannan.
Ranch Hand
Joined: Feb 09, 2009
Posts: 64
posted
0
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."