If I want to compile .java file from C:\Javadirectory, I have to set classpath to "SETCLASSPATH=C:\java; Right?? but that doesn't work afterassigning up PATH variable to C:\jdk1.3.1_03\bin on mysystem.
If I were you I would use the command line switches to affect the class path.Thus, if you want to compile .java files in the C:\Java directory, first switchto that directory and then type:java -classpath . *.java