How to install and configure jdk (Java Development Kit)

Install and configure jdk (Java Development Kit): 

ORACLE

Why should we configure jdk ?

Java is platform independent language, which means same java code or application able to run every platform like windows, linax, mac etc.
Again, Java is not machine language. It's a high level language. So java can't execute directly by machine. It's execute by java run time environment. So we have to configure jdk with platform. We have to link the environment path to jdk.
We can's use eclipse or any ide for java without jdk.



We have to follow some easy steps.

Step 1: First we have to check system type either 32 or 64 bit. Then we have to download jdk from oracle.com according to the type of system. For this we have to Accept License Agreement.

Download jdk
 [Note: 86 means 32 bit ]

 Step 2: Just normally install jdk like this:

Install jdk
Just press next..... 

Install jdk
Don't change default destination folder. Press next again. It may take some times to install jdk.

Step 3: First find the Destination folder in c drive. Usually the  default direction is: C:\Program Files\Java\jdk1.8.0_25\bin
or
C:\Program Files(x86)\Java\jdk1.8.0_25\bin

Find  Program Files-Java-jdk1.8.0_25-bin and right click on any of the file in bin folder. Click on properties and copy location.


 Step 4:
Go to system properties by clicking right click on my computer.

System info

Then go to "Advanced system settings" and press Advanced :
 
System properties
Click on "Environment Variables" . Find "path" and press edit.  

System properties
 Then go to the end of the existing folder and press semicolon (;). If there is already a semicolon, no need to enter (;) again.
Then paste the copied link address. Press OK.

Step 5: Testing our job.
Go to search option by pressing win+r . Search for "cmd" and press Enter. Now write "javac" and press Enter. If it shown following information's, then we configured jdk properly.

cmd commend
Now we can code java with any ide or compiler.
Happy Coding !!!

Related Post

Level of programming language                                         Compiler for C, Java, HTML, Python


How to install and configure jdk (Java Development Kit). Install and configure jdk (Java Development Kit): ORACLE Why should we configure jdk ? Java is platform independent language, which means same java code or application able to run every platform like windows, linax, mac etc. Again, Java is not machine language. It's a high level language. So java can't execute directly by machine. It's execute by java run time environment. So we have to configure jdk with platform. We have to link the environment path to jdk.