This question asks how to setup your path variable in Windows to include the Java bin directory allowing you to use the javac command from the prompt. The solution posted t
Use the variable set by the Java Installer instead:
set path="%path%;%JAVA_HOME%\bin"