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.
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 |
Step 2: Just usually install JDK like this:
Install JDK |
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 |
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 |
Happy Coding !!!
Post a Comment