I have just installed JDK version 12.0.2. How do I get Windows 10 to
find the commands javac and java?
On 9/11/2019 5:06 PM, Peter Percival wrote:
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!
Eric Sosman wrote:
On 9/11/2019 5:06 PM, Peter Percival wrote:Thank you.
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!
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 226:58:46 |
Calls: | 6,624 |
Calls today: | 6 |
Files: | 12,171 |
Messages: | 5,318,701 |