Here is a quick guide where you can Install Java Development Kit (JDK) jdk1.8.0_131 In Windows 7. Java JDK kit is used to develop Android apps and a lot more.
Go to Download JAVA SDK and download Java Platform (JDK) 8u131 file from the site. You will be redirected to another window. Once you are redirected to the download page, you may need to check the "Accept Licence Agreement". Then as per the version of your windows, download Java SDK by selecting the appropriate link. You can check the version of your windows by going to Control Panel\System and Security\System.

You can select download for Windows 64 bit version and 86 version. The JDK current version has a size of 198 MB and it will take some time to load as per the internet speed. After downloading, install Java SDK and double clicking to set up and selecting next. I would suggest not to change anything, including the path of Java SDK files.

To verify whether Java installed correctly in Windows, Go to Local Disk C > Program Files. There you can see a folder called Java and JDK files inside the folder.


To add the Java SDK in Windows Environment variables


Click on start button
Right click on the computer
Select "Properties"
Select "Advanced System Settings"
Go to "Advanced" and Select "Environment Variables" which is at the bottom of the window
Click "New"
You will get a window titled "Edit System Variable"
You need to add the following names and value of the variable

Variable Name: JAVA_HOME
Variable value: C:\Program Files\Java\jdk1.8.0_131

Select Ok

Usually the above variable value will work. If its not working you need to find the path where Java SDK folder is. For that Go to the local disk where Jva SDK is installed and find out the folder Java and under that you will see a folder with jdk version. Copy the entire path and put it as variable value.

Again click on "New"

Add the following name and value of the variable

Variable name: PATH
Variable Value: C:\Program Files\Java\jre1.8.0_131\bin;%JAVA_HOME%\bin

Usually the above variable value will work. If its not working you need to find the path where "bin" folder is. For that Go to the local disk where Jva SDK is installed and find out the folder Java and under that you will see a folder with jdk version. Open that folder and you can find "bin" folder. Copy the entire path and put it as variable value. After the path add ";%JAVA_HOME%\bin" without quotes.


Select Ok and Again Ok

You have installed Java SDK in Windows. Now lets verify whether its successfully installed in Windows. For that you need to go to command prompt.

To open Command Prompt


Press Windows Key + R or type "run" in start menu and Click on Run button
Type "cmd" without quotes in the run box and press Ok.
A black colored window will appear
Copy the below code and paste it in the window. You can right click on the black window to get the option of paste

java -version

If you have successfully followed the instructions, you will get a message like the one below;

java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

If you are getting this message, congrats. You have successfully installed Java SDK in Windows.

If not, you may get a message like the one below;

'java' is not recognized as an internal or external command,
operable program or batch file.

Then please go back and carefully check the path and variable values.

2 Minute Video Tutorial



Now you can move forward and Create a New App Project in Android Studio v 2.3.2.


| Comments || >