Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.help Subject: Re: 'javac' is not recognized as an internal or external command, operable program or batch file. Date: Wed, 11 Sep 2019 17:40:29 -0400 Organization: A noiseless patient Spider Lines: 27 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 11 Sep 2019 21:40:33 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="38509f72f796cab4bdcf4eb08d302f84"; logging-data="26723"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/k1lmtdoX3HbmSdxjnmuBx" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Cancel-Lock: sha1:rAM7Pnr3VGUu6MQg3bUDv7YLkJg= In-Reply-To: Content-Language: en-US Xref: csiph.com comp.lang.java.help:4307 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! -- esosman@comcast-dot-net.invalid Four hundred ninety-seven days to go.