How to Install Java JDK 8u66 on Windows 10

How to Install Java JDK 8u66


In this guide I will show you how to download and install the Java Development Tookkit so that you can start develop Java applications.

In Google, search for Java JDK

Select to download the appropriate version.

After downloading, double-click on the downloaded file to install Java.

Note the installation Path (C:\Program Files\Java\jdk1.8.0_66\) and click Next.

Click Next to continue.

Once successfully installed, click Close.

Open the Command Prompt and type javac, you should see an error message as follows:

Change directory to C:\Program Files\Java\jdk1.8.0_66\bin\ and type javac again. The above error should disappear. Instead, you will receive a different error. The error this time is a good error, meaning that javac is recognized by the Command Prompt but a source code file is not specified. That’s OK.

Now we will add the install path to the environment variables so that javac can be recognized from any working directory. Open the Control Panel, choose System. Click to open the Advanced
system settings.

Click the Environment Variables button.

Under System Variables, highlight Path and Click Edit

Click New

Enter the new line. Click OK.

Click OK to close the Environment Variables dialog box.

Click OK to close the System Properties dialog box.

Now open a new Command Prompt windows and type javac at any directory prompt. Javac should run successfully.

That’s it!