In this tutorial, we will show how to install the Java Development Kit (JDK) in Windows 10.
- Download the Java SE Development Kit 8u162 from the Oracle website here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- Click on Accept License Agreement and click the appropriate link depending on your operating system. For the purpose of this tutorial, we are downloading the jdk-8u162-windows-x64.exe for the Windows 64-bit operating system.
- Run the installer, and click Next twice. This will probably take a lot of time.
- During installation, the JRE installer will pop-up, click Next to install. This will also take some time. Click Close when the installation finishes.
- Navigate to This PC, OS (C:), Program Files, Java, Bin to confirm the files are there, and click at the end of the path bar. Right-click and click Copy on the context menu.
- On the Windows Search bar, type environment and Enter to Edit the system environment variables.
- The System Properties window will open. In the Advanced tab, click the Environment Variables button.
- In the System Variables section, select the Path and click the Edit button.
- Click the New button and paste the folder path you copied earlier. You can use the Ctrl + V keyboard combination. Click OK 3 times.
- In the Windows Search bar, type cmd and Enter to open the Command Prompt. Type javac and hit Enter. You should see a list of commands.
- Now type javac -version and Enter to see the current Java version installed. This confirms successful installation.
Disclaimer: The content provided in this article is for informational purposes only. You are solely responsible for verifying the information as being appropriate for your personal use.