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 can run every platform like Windows, Linux, Mac, etc.
Again, Java is not a machine language. It's a high-level language. So Java can't execute directly by the machine. It's executed by a 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 must check system type either 32 or 64 bit. Then we have to download JDK from oracle.com according to the system. For this, we have to accept the License Agreement.


Download JDK
 [Note: 86 means 32 bit ]

 Step 2: Just usually 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 the 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 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, there is 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 correctly.


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