Install Java on Windows

How to Install Java on Windows Step by Step Guide

Introduction

The Java Development Kit (JDK) is software used for Java programming, along with the Java Virtual Machine (JVM) and the Java Runtime Environment (JRE). In this blog post, we will provide you with a step-by-step guide on how to install Java on Windows.

In this blog, We will learn to install the Java (JDK) on Windows.

Prerequisites

  • A system running Windows 7 or Above.
  • Internet connection.
  • Administrator privileges on system.

Step 1: Verify if Java already installed in the system

Check if Java is already installed in your system. To verify open CMD as administrator and run the following commands :

java -version

If Java is already installed in the system, You may see output like below :

Else if Java is not installed in your system, You may see output like below :

Step 2: Download Java for Windows

Download the latest Java (JDK) installation file for Windows to have the latest features and bug fixes.

  1. Open your favorite web browser and navigate to the official Oracle Java downloads page.
  2. On the Downloads page, Click the x64 Installer download link under the Windows category. In this case we are installing latest Java long-term support version 17 edition but you can install as per your requirements.
Java Download Page

Once the download is completed, We can proceed with the installation of Java

Step 3: Install Java on Windows

Follow the steps below:

  • Double click or run the installation file.
  • Now installation wizard will appear. Click on Next
  • You can choose your destination folder for the Java installation or leave it to the default path. Click Next to proceed.
  • Now Installation will start. Wait for the wizard to complete the installation process until the Successfully Installed message appears. Click Close to exit the wizard.

Step 4: Set Environmental Variables in Windows Path

  • If you are using Windows 10 then open the Start menu and search for environment variables.
  • Select the Edit the system environment variables result.
  • In the System Properties window, under the Advanced tab, click Environment Variables
  • In Environment Variables window, select Path in System variables and click on Edit as shown below:
  • Note : The default path is usually C:\Program Files\Java\jdk-17.0.1\bin.
  • Now, Copy JDK bin path where Java has been installed and paste the path at last as shown in below image and click on Ok :
  • Click OK to save the changes and exit the variable editing window.

Step 5: Add JAVA_HOME Variable

  • In the Environment Variables window, under the System variables category, click the New… button to create a new variable.
  • In Edit System Variable tab fill the details as Variable name: JAVA_HOME and Variable value: “jdk Path” as shown in below image :
  • Confirm the changes by clicking OK in the Environment Variables and System properties windows.
  • Java setup is done, If you want you can restart your system once or continue without restart.

Step 6: Verify Java installation in the system

Open CMD as administrator and run the java -version command :

java -version

If Java is successfully installed in the system, You may see output like below :

In this case if you are not getting output like above image then restart your system and repeat Step 6.

Conclusion

In this blog we showed how to install the Java (JDK) on a Windows system. Now you can run your Java code in your machine as per your requirements. If you are looking to install on other operating systems like Linux or MAC then you can read this blog.

17 Comments

  1. Bress Golg

    You have a real gift for breaking down complex ideas into digestible pieces. Fantastic job!

  2. Alex Maroc

    Thank you for investing your time and effort in creating such a valuable resource.

  3. Palo foxed

    I’ve bookmarked this as a go-to resource—it’s that good!

  4. Blare Williams

    This post has answered questions I didn’t even know I had. Exceptional work!

  5. Gorf Brad

    Your writing not only informs but also motivates. I’m excited to apply what I’ve learned.

  6. Tom Honk

    This blog has truly inspired me to dig deeper into [specific topic]. Thank you!

  7. إنشاء حساب

    I especially loved how you broke down the complex errors. It’s rare to find such clarity.

  8. Mari Ches

    The code snippets and their explanations are spot on—thank you for sharing!

  9. Konto erstellen

    Your use of diagrams and examples made this complex subject much easier to grasp.

  10. Charl Dofel

    The way you explained the steps ti implement was incredibly intuitive. It really clicked for me!

  11. Borel Clos

    What a phenomenal read! You’ve packed so much knowledge into this article.

  12. James Toric

    Every sentence adds value. This is what great technical writing looks like!

  13. Rofel Acel

    This blog is like a masterclass on the topic—thorough and insightful.

  14. Jhon Sthephen

    You’ve set a new standard for technical blogs with this post. Outstanding work!

  15. Sarati Wise

    I’m blown away by how well-structured and informative this blog is. Kudos!

  16. Kamal Tina

    Absolutely brilliant post! You’ve explained complex concepts in such a relatable way.

  17. Binse

    This blog is a goldmine of technical insights! The depth of analysis and clarity in explanation are unmatched.

Leave a Reply

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