Machan If you have the .java file at your Desktop you have to change the Current Directory as below
I have Windows 7 so it must be bit deferent if you have XP
when u open Command Prompt you will get Something like this.
C:\Users\yourname>
to change Current Directory to Desktop do this...