Saturday, August 8, 2015

How to Install Java

Hi All...!

In this post I'm going to show you how to Download and Install Java on your computer.To run java programs on your computer you need JRE (Java Run time Environment) and to develop Java Programs you need JDK (Java Development Kit).When we download JDK(Java Development Kit) we will also get JRE (Java Run time Environment). So no need to download both.

Step 1: Download Java Development Kit (JDK)



1.Open your web browser and search JDK or visit the link 


2.Then click on Java Platform JDK (8u51)



3. Then you will get a Table Java Development Kit 8u51

     Accept the License Agreement and download JDK which is compatible to your OS (Currently I'm using Windows 7 OS 64 bit so I'm going to download JDK that compatible with Windows 64bit os)



After Download JDK Let's see how to install Java On your computer

Step 2 (How to install JDK)



1. Go to the location where your downloaded JDK is located  

2. Click on the "jdk-8u45-windows-x64" .exe file and run it










Okay guys now you have install the Java JDK 1.8 on your computer Let's check is it up and running.

Step 3 (Check your JDK is up and running)



1. Click on start button and type "cmd" to open command line interface on your computer

2. On the command line interface type "javac" and press enter 

3. If you get following view your JDK is up and running 





4. If you get following view your JDK is not running. You have to set the path for JDK.




  

Step 4 (Set JDK path)



1. Go to your C drive where the programming file is located.



2. Then open programming files




3. Then open folder named as Java






4. Open jdk 1.8.0_45





5. Open folder call bin and select something in that folder. Copy the location of that





 6. Now go to your desktop and right click on My Computer and go to properties.Then go to 
     Advanced System Settings 






7. Then go to Environment Variables 





8. Click on new 





9. New User Variable window will open in that window set the variable name as "path" and the value  as "C:\Program Files\Java\jdk1.8.0_45\bin" (location of the java bin) and hit ok





10. Now again open command line interface and type javac and hit enter. Now you will get following view. That means your Java JDK is now up and running





Okay guys I will show you how to create a simple "Hello World" program and run it on command line in my next post until then bye bye.....!



1 comment:

  1. Thanks
    you helped a lot in configuring the path to java!

    ReplyDelete