JDK installation
The purpose of this section is to guide you to install Java in your development environment. JDK is a shortcut for Java™ Platform, Standard Edition Development Kit
The JDK is a development environment for building applications, applets, and components using the Java programming language.
Latest version of JDK is JDK 8.
JDK 8 installation is mandatory if you want to target Android devices.
Navigate to the following URL : http://www.oracle.com/technetwork/java/javase/downloads/
Locate the button Java SE Downloads:
Click on this button. On the next page select the latest release for the 64-bit platform: jdk-8u102-windows-x64.exe:
Double-click on the downloaded file : jdk-8u102-windows-x64.exe to start installation of JDK. Do a standard installation by clicking on next button at each step of the installation wizard.
Execution of this package installer is possible only if you have administrator privileges on your machine. This may not be the case if you are inside a company : check this point with your system administrator.
To ensure the installation is complete, you can manually invoke the Java compiler called javac.exe. Javac is located in folder C:\Program Files\Java\jdk1.8.0_102\bin.
To do this open a Command Prompt (All Apps-> Windows System -> Command Prompt) and type javac. You should have a response like:
Usage: javac <options> <source files>
If javac is not found, reboot your machine and try again.
If still not found, add the path C:\Program Files\Java\jdk1.8.0_102\bin to the PATH Windows environment variable.
To add a path to the PATH environment variable:
- Open window All Apps -> Windows System -> Control Panel -> System and Security -> System
- Click on Advanced System Settings
- On the Advanced tab of the System Properties dialog box, click Environment Variables.
- In the System Variables box of the Environment Variables dialog box, scroll to Path and select it.
- Click the lower of the two Edit buttons in the dialog box.
- In the Edit System Variable dialog box, click the New button.
- Type the path : C:\Program Files\Java\jdk1.8.0_102\bin
- Click OK in three successive dialog boxes, and then close the System dialog box.