: The first wizard will install the development kit, typically to C:\Program Files\Java\jdk1.8.0_161 .
: To use Java anywhere in your Command Prompt, you must tell Windows where it is: System Properties Environment Variables Create a new System Variable named and point it to your installation folder. variable and add %JAVA_HOME%\bin to the list. Verification : Open a terminal and type java -version jdk-8u161-windows-x64.exe