How to install and configure JDK (Java Development Kit)

Install and configure the JDK (Java Development Kit): 

ORACLE

Why should we configure JDK?

Java is a platform-independent language, which means the same java code or application able to run every platform like Windows, Linux, Mac, etc.
Again, Java is not machine language. It's a high-level language. So java can't execute directly by the machine. It's executed by java run time environment. So we have to configure JDK with the 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 the default destination folder. Press next again. It may take some time 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 files in the 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 the search option by pressing win+r. Search for "cmd" and press Enter. Now write "javac" and press Enter. If it showed the following information, then we configured JDK properly.

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

Related Post

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


0/Post a Comment/Comments