August 5, 2008 at 9:09 PM
First complie ur file by giving command c:\javatutorial>javac classname.java, after that c:\>javatutorial>java classname afterwards it will give u output. But before compling ur program u have to set path.
Suppose ur jdk is in c: then
c:>\javatutorial> set path=%path%;c:\jdk\bin;.
also set class path