Install Java and Configure Java environment


Description :-  In this tutorial, we are going to show you how to Install Java SE Development Kit 7. A step by step snapshots are provided to make you understand Install Java and Configure Java SE Development kit 7 on your machine. Before we proceed with Install Java process, we must understand the difference between JRE (Java Runtime Environment) and JDK (Java Development Kit).

Java Runtime Environment (JRE) vs Java Development Kit (JDK) :-

If you want to run the JAVA programs, but not develop Java Applications, them, then you just need to download JRE.

whereas you have to download the JDK, if you need to develop JAVA applications. The JDK includes the JRE as well, so you do not have to download JRE separately.

JRE :- It is just your Java Virtual Machine where your Java Program runs.

JDK :- It is software development kit for Java which includes JRE, compilers and tools to create and run Java applications.

STEP 1.   Download the Java SE JDK 7 :-

  • Go to the webpage –
  • Click on ‘Downloads’ tab.
  • Search for ‘Java SE’ hyperlink under the ‘Java’ tab and click it.
  • A Java SE downloads page will be opened.
  • Choose the newest version of Java SE Java Development Kit and click on ‘Download’ under the JDK option.
  • Accept the license agreement and choose your desired installer depending on your Operating System and download it.

NOTE :- You can Click below Image to go to the Download page directly or Click Me 

Java SE Downloads

STEP 2.   Install Java SE JDK 7 :- 

  • Right click on the Installer icon, and select ‘Run as administrator’ option.
  • Snapshots of Step by step Install Java is attached below. Follow the installation steps.

Welcome Screen for Installing Java SE Development kit 7

  • It is ideal to go for the default installation path (C:\Program Files\Java\…).
  • Destination Folder window will pop up. Choose as per your convenience. We are leaving as default.

Choose Destination folder for Installing Java SE Development kit 7

  • You can see the Loading status in the window. Can you Imagine 3 billion devices run Java. Approximately double the population of India. Java is everywhere !!!

Successfully Installed Java SE Development kit 7

The Java Development Kit is successfully installed in your machine. Now, we are left with Configuring Java Environment part.

STEP 3.   Configuring and Setting up Environment Variables :-

  • Go to your installed Java directory (C:\Program Files\Java\jdk1.7.0_version_no..).
  • In our case, version number is 45.

Copy Installed Java Directory path upto bin

  • Go inside the ‘bin’ folder. Copy the path upto this(bin) folder.
  • In this scenario, it is C:\Program Files\Java\jdk1.7.0_45\bin
  • Now Right click on My Computer and click on ‘Properties’.
  • Then click on ‘Advanced system settings’.

Advanced System Settings in Control Panel

  • Under Advanced tab, Click on Environment Variables button to confire Java environment.

Go to System Properties and Click Environment variables

  • Under the ‘System variables’, locate the ‘Path’ variable and click on ‘Edit’.

Setting path under Environment variables to Install Java

  • Append the copied path (of bin folder) at the end of the Variable value.


  • Make sure you put semicolon(;) before you paste the path.
  • ;C:\Program Files\Java\jdk1.7.0_45\bin

Edit System variable window

Click on OK button. Now, you are done with both Install Java and Configure Java environment parts.

STEP 4.   Test your Java installation :-

  • Open Command Prompt (Go to Start and type cmd in Run).
  • Type ‘java’ and click Enter.
  • If you see stuff like below, then it means you are able to access Java executable. In case, you encounter any error, just check all the steps thoroughly and restart the machine once you set environment variable.

Test Successfull Installation of java via command propmpt

STEP 5.   Free e-books and Pdf’s :-

Please Subscribe or Like PhpRinG Tutorials for free e-books and pdf’s.

  • Launching Very Soon free e-books and pdf’s on Java.

With this we complete our post on Install Java and Configure Java Environment. I hope this helps you in your learning path for Java. Many beginners face issues with Install Java and gets confused to configure Java environment. As we saw above it is very simple. Still if you have any doubts please write comments below. It will be our pleasure to work with you and solve your queries.

VN:F [1.9.22_1171]
Your Feedback hels to Improve
Rating: 10.0/10 (12 votes cast)
VN:F [1.9.22_1171]
Rating: +14 (from 14 votes)
Install Java and Configure Java environment, 10.0 out of 10 based on 12 ratings
  • Aanchal Kapoor

    Hi Amit,
    I fought with many java tutorials to set environment variable but never found such a simple and easy tutorial. Thanks !!! Very nice n Helpful tooo

    • Amit Wadhwa

      Hi Aanchal,

      Thanks for your valuable comments. Really Appreciate that.


  • sanjiv

    very easy nd useful java tutorial

  • Muralikrishna

    Diff B/W OLE DB Command and OLE DB Destination