A simple way is to echo JAVA_HOME or the path variable and search for the javac.exe by self inspection.
The smart way to do the same is utilize below command
Windows > Start > cmd >
C:> for %i in (javac.exe) do @echo. %~$PATH:i
If you have a JDK installed, the Path is displayed,