Hi,
This is fundamental question of running a executable on Windows.
you need to set the PATH variable in your system
So lets say if you have java installed in a directory C:\Java then your path should contain the folder which has javac.exe
so at command line run this command first
SET PATH=%PATH%;C:\Java\bin
Then run your javac
Hope this helps
Regards,
Find more java related beginers questions collection here
Java Interview: Java Frequently Asked Questions