Configure JDK For Windows

Hey guys, In this tutorial I will explain your four concepts, first how to check your JDK version then what JDK version you need, how to download JDK and how to configure JDK path and variables for the windows OS. You can also check the video tutorials for the better understanding. Let’s started.

Check Current JDK Version

First of all you have a question where to find Java resources. Let’s get started with the fun stuff as you know in the system requirement JDK or Java development kit is required for android studio.

May be you have already have JDK installed on your machine, to check JDK is already installed or not Let’s have a look.

If you’re running Windows 8 or Windows 8.1 or whatever Windows 7 or 10 procedure remain the same for each Windows Operating System.

Configure JDK For Windows

Right click on the Start menu, from the program list click on the command prompt to open the command prompt window, or you may use the shortcut (Ctrl + Windows) and then type CMD then hit enter.

Configure JDK For Windows

Enter the command Java (space) – version then press enter, the output of the command will be similar to this like (java version “1.8.0_65”) or something else value. But if you don’t see any kind of the output then it’s mean you don’t have already installed the JDK in your Windows machine.

If you have any kind of the trouble which this part of the tutorial, then you must need to watch the whole procedure in the video tutorial below.

watch video

Which JDK You Need & Download JDK

Before download the JDK, you must have to know that what’s your OS bits system, I mean is your OS is 32-Bit’s or 64-Bits’s. To check the type of operating system running on your computer you need to Right Click on your Start menu and from the program list click on the system.

Configure JDK For WindowsNow in the system panel you can clearly observe your operating system type, I have 64-Bit’s operating system you can see in the image below.

Configure JDK For Windows

That’s why I will download only JDK which is 64-Bit’s supported. To download the JDK you need to go on the official site of Oracle. Java SE Development Kit 8 Downloads

Now visit the link I have mention above and accepts the licence to download the best fit JDK for your operation system according to your OS type. I have already downloaded that’s why I’m not going to download that again.

If you have any kind of question regarding this step you can view the video tutorial below for the further clarification.

watch video

Finally Install JDK

So let’s installed the JDK, in the last step we just downloaded JDK. To install JDK you can either double click the executable file which was downloaded or right-click the executable file then select run as administrator.

To run it, if you see the user account control dialog box click yes, to continue click Next, to continue, you can either choose to change the JDK installation folder, or choose the default installation folder which is suggested.

Here we’re gonna just go with the default installation folder click Next to continue, in short words you just keep continued with the default settings until the JDK is installed.

After the JDK is installed you can recheck your JDK status through the CMD by giving the command (java -version) to ensure you have finally updated your JDK version which is essential to work with android studio.

If you have any kind of question regarding this step you can view the video tutorial below for the further clarification.

watch video

Configure JDK For Windows

Finally we have already downloaded and install the JDK. The next we need to set up the Java environment variables for Android studio.

There are two main Java environment variables that need to be setup.

  • Java Home
  • JDK Binnary Folder Path

To setup this variable go to the control panel, in the search box type environment variables. You will an option named system comes, Under system click on edit the system environment variables.

Configure JDK For Windows

In the system property window click environment variables button. Then Click the new button below the system variables window to add a new environment variable which is called Java home.

Configure JDK For Windows

That will point to the JDK folder, I already have my JDK home variable set up but I am going to show you how to get this variable added.

In the new system variable window, type JAVA HOME in the variable name field. JAVA HOME is all in upper case. The value of the variable is the location of the JDK folder on your computer.

To find the location of the JDK folder on your machine. Open Windows Explorer or file explorer from the start menu. Go to the drive on which you have your program files to drive a seat on my machine it could be different on your machine. Open the program file resource drive, then open program files, search for Java in your program files directory by typing Java into your search box.

The first folder named Java folder in the program file is the one we are interested in so open it. We are interested in the latest version of JDK we have installed. You may found some old version also in the folder. But you need to get the path of the latest version of JDK.

Note, there is also same named JRE folder so don’t select the JRE, if they are in folder we are only looking for JDK folder. Open the JDK folder click on the path menu to highlight the path and use Ctrl + C keyboard shortcut to copy path.

Paste the path that you just copied, into the variable value field and click OK to close. The second variable that you need to be setup is the JDK binary folder path, to find the JDK binary folder path go back to the location of the JDK folder on your machine.

In the JDK folder you will find a binary folder named bin double click to open the bin folder, copy the path, now go back to the environment variable settings to config the variable path.

It will useful if you already not setup the bin path variable, but if that is setup already then you don’t need to follow this step.

Now click to select the variable path, you will need to create the variable path it does not already exist on your machine, it does not exist therefore we need to create it click the new button to create a variable path.

Configure JDK For Windows

In the variable name field has a value Path, in the variable value field paste in the Path to JDK binary folder, will just copy then click OK. When you finally done all the procedure then click OK.

Now the last thing is to just verified that is the JAVA HOME variable is working or not ! to verified you need to open you CMD and type set JAVA_HOME and hit enter to see the results. If you have not setup it right it will show you error otherwise give you path of the folder.

If you have any kind of question regarding this step you can view the video tutorial below for the further clarification.

watch video


I hope that this tutorial is full of information for you, and you will enjoyed with that, if someone of your friend having trouble with the JDK just share this piece of content with them to make their work easily solved.

Remarks your comments about this tutorial, if you think I can improve these tutorials more then please share your suggestion and thoughts.


CommentLuv badge