Discussion:
'javac' is not recognized as an internal or external command, operable program or batch file.
(too old to reply)
Peter Percival
2019-09-11 21:06:39 UTC
Permalink
I have just installed JDK version 12.0.2. How do I get Windows 10 to
find the commands javac and java?
Eric Sosman
2019-09-11 21:40:29 UTC
Permalink
This post might be inappropriate. Click to display it.
Peter Percival
2019-09-11 22:42:12 UTC
Permalink
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!
Thank you.
Juhani Ylikoski
2019-09-18 13:42:06 UTC
Permalink
Post by Peter Percival
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!
Thank you.
yes, aye, you are correct that this is something of a flaw in the Java
distribution.

DL AJY
HKI, the EU

https://www.dropbox.com/sh/j8ql5htp86dfpa8/AAAiAlwlJ7xkb5n0s6Cb_RPJa?dl=0
Loading...