I have just installed JDK version 12.0.2. How do I get Windows 10 to
find the commands javac and java?
For javac (et al.), make sure your PATH includes
C:\Program Files\Java\jdkxxxx\bin
where "xxxx" is the folder corresponding to the JDK version. (If you've
installed to an unusual location you may need something other than "C:",
and if you're using a 32-bit version -- does 12 still support 32-bit? --
you'll need "Program Files (x86)".
The kit ordinarily takes care of getting java itself onto your
path -- but maybe it only does so if you enabled "Public JRE" during
the installation. If you need to set it up manually (using the JRE's
internal Java), add
C:\Program Files\Java\jdkxxxx\jre\bin
to the PATH (same adjustments as before).
Good luck!