Installing Java on Windows 7 Ultimate 64-bit

Filed Under: Java

Recently I bought a new desktop system and installed Windows 7 Ultimate 64-bit on it. Being a Java Developer, the first thing I did after the regular setup is to download and install JDK. I was using Windows XP, Solaris or Mac OS for my development purpose till now and I was installing it for the first time on Windows 7 64-bit OS.

Install Java on Windows 7

Here I am providing steps to download, install and configure Java in Windows 7 64-bit operating system.

  1. Download JDK from Oracle website. Make sure to choose Platform as “Windows x64” for 64-bit OS and “Windows” for 32-bit OS. If you are not sure whether you have 32-bit or 64-bit OS, you can check it in Control Panel > System > System type.
    Currently the stable version available is JDK 6 Update 23 and the executable file is jdk-6u23-windows-x64.exe.
  2. Install the JDK from the downloaded executable file. It will also install JRE and some demo applications.
  3. Now we need to setup environment variables so that we can execute java commands from command prompt. For this, go to Control Panel > System > Advanced system settings. In the “System Properties” pop up go to Advanced tab and click on “Environment Variables” button.
  4. In the System Variables section, we need to set JAVA_HOME and edit Path variable. Variable name and values are;
    JAVA_HOME=C:\Program Files\Java\jdk1.6.0_23
    Add “;%JAVA_HOME%\bin” to the Path variable now. Click on Ok button to save it.
  5. Now we can run java commands from command prompt. You can check it by executing command “java -version” command.


  1. If you need only JRE, then you can use the operating system JRE that will be present in the program files. However, you will have to add the System variable to use it.
  2. If you want to setup Java only for the logged in user then you need to add Environment Variables in the User Variables section.


  1. Leandra says:

    You ought to take part in a contest for one of the most useful websites online.
    I most certainly will highly recommend this web site!

  2. review says:

    Hello there! Would you mind if I share your blog with my twitter
    group? There’s a lot of folks that I think would really appreciate your content.
    Please let me know. Many thanks

  3. Anonymous says:

    Do you mind if I quote a couple of your articles as long as I provide credit and sources back
    to your webpage? My blog site is in the very same area of interest as yours and
    my visitors would definitely benefit from a lot of the information you present here.

    Please let me know if this ok with you. Cheers!

    1. Pankaj says:

      You can quote my article and take some part of it but not full content.

  4. Juliet says:

    It’s going to be ending of mine day, except before ending I am reading this enormous post to improve my experience.

  5. Anonymous says:

    Hi there, after reading this remarkable paragraph
    i am as well happy to share my knowledge here with colleagues.

Leave a Reply

Your email address will not be published. Required fields are marked *

Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages