Install JDK on Windows
To install JDK, perform the following steps:
Download the latest JDK from the following link: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html.
The downloaded Java installation file (.exe) is saved in the Downloads folder.The instructions in this section are provided for the steps in the JDK installable that was downloaded at the time of writing this document. The screens in the installation wizard are dependent on the version you have downloaded. If you have downloaded a different version, you might have lesser or more steps in the wizard. The instructions here are just a guideline to install the prerequisites.
- Open the downloaded file and click Next. The JDK installation wizard displays.
The steps in the installation wizard vary for each version of JDK. Hence, the latest JDK that you install may not have some of the steps mentioned in this procedure. - Click Next.
- Click Next. It will go through the checking process.
- Select the destination folder of the JDK kit, but the default destination is C:\program Files\Java\jre1.8.0_71 (recommended). Then click Next.
The installation of JDK begins. - Click Close after the installation is done.
The JDK gets installed.
To check the version of Java installed, perform the following steps:
Open the command prompt and enter the following command:
java –version
The installed version of Java displays.- Continue with the Install Ant on Windows section.