Go to www.oracle.com , the Downloads tab, find Java, probably SE (Standard Edition) and then select the appropriate SDK (Software Development Kit).
I don't remember if you need to use an absolute (full) path to javac on Windows, but the command is something like:
javac yourProgram
yourProgram needs to be named yourProgram.java