"C:\Program Files\Java\jdk1.7.0_40\bin\javac.exe" *.java
Go to Computer -> Program Files -> Java
Take note of what your JDK file is, for example yours may not be _40, it may be _17. Take note of this and make the amendment in the compiler, and save. more than probably you'll be running something such as.
"C:\Program Files\Java\jdk1.7.0_25\bin\javac.exe" *.java
Please don't refer to a line in a bat file as "code" again.
Thanking you kindly.