Originally posted by Vinayak patil:
To compile java programs from the command prompt CLASSPATH has to be modified to include the java bin directory.
-Vinayak
No. First, CLASSPATH never has to be modified, and generally shouldn't be, especially for those new to Java. Second, if you
did modify it, it points to places for Java to find classes, not for places for the OS to find programs like javac.
The
PATH environment variable needs to include JDK_HOME\bin, yes; otherwise you'd have to type "C:\JDK1.5.0_05\bin\javac" insread of just "javac".