Thanks Jeff!
i replaced program files with its DOS name and LO! it works! now i can compile java files from anywhere. Thank u!!
thanks Stefan for your response.
It is JAVA_HOME. i typed Java_home coz i was lazy to press the shift key here in the message