Java Windows 10 Download Install

Filed Under: Java

Today we will learn how to download and install Java on Windows 10. If you are new to Java programming then this is the first step you need to perform. Until unless your java Windows 10 environment is set up properly, you will not be able to develop Java programs and run them successfully.

How to Install Java in Windows 10

Installing Java on Windows 10 is really easy, just follow the steps as follows:

  1. Java Download for Windows 10

  2. The first step is to download java installation files from Oracle’s website. Java 9 is the latest version, so go to this link and accept the license agreement. Then click on the download link for windows as shown in the below image and save the file.

    java download for window 10, java windows 10

    Note: If you are trying to install Java 8 or earlier, then you need to know whether your Windows 10 is 32-bit or 64-bit. It’s because there are two different installers for Windows as seen in this link for Java 8 binaries.

    java 8 windows 10 installation exe file 32 bit 64 bit

    If your Windows 10 is 32-bit OS then download Windows x86 exe file, else download Windows x64 exe file.

    If you are not sure of your Windows version, you can easily check it in Settings > System Settings > About.
    windows 10 java download system type

  3. Java Windows 10 installation steps

  4. Next step is to run the downloaded java installer executable file. Just double click on it and follow the steps. Most of the time you don’t need to check anything and go with default selection, below are images from my installation screens. They might differ a little bit based on your java version installation but mostly it’s the same as usual.

    java windows 10 install run exe file

    java jdk windows 10 installation wizard

    java windows 10 installation directory custom setup

    java windows 10 custom setup

    java on windows 10 installation progress screen

    java windows install success screen

  5. Java on Windows 10 Version Check

  6. Finally, we have to check if java is installed properly or not. We can do that by using java -version command in command prompt, as shown in below image.

    java windows version check

    Note: In older java versions and other windows operating systems, you need to set up two environment variables to get it working.

    Go to System Properties (Right Click on My Computer and select Properties) > Advanced > Environment Variables.

    In the popup window, System variables section, click on New button and add a variable with the following details:

    Name: JAVA_HOME

    Value: C:\Program Files\Java\jdk1.6.0_25

    java environment variable windows

    After this, you need to edit the Path variable already present there. Just select the Path variable and click on the Edit button. In the popup window value section, go to the end and add the following ;C:\Program Files\Java\jdk1.6.0_25\bin (The colon is used as a delimiter, so don’t miss that!)

    Now your setup is done and you can check it by opening a command prompt and running command java - version.

    In Windows 10 and Java 9, we don’t need to do these manually. Java installer takes care of that and you can check environment variable Path value, as shown in the below image. Note that we don’t need to set the JAVA_HOME variable.

    java windows 10 path variable

  7. Download and Install Java IDE

  8. This is an optional step but highly recommended. If you want to get things done easily, you should install either Eclipse, Intellij Idea or NetBeans IDE that helps a lot in development of java programs. Just download and install it with executable file, they are straight forward.

That’s all for downloading and installing java on windows 10. Let me know if you face any issue in setting up the environment.

What’s after installing Java

Now you are ready to learn java programming, go through the articles on core java tutorial and learn java programming step by step.

Note: A few years back, I made this video to install java 8 on windows 10. Steps are still almost the same so you can watch it to get more ideas about it.

Also if you want to have multiple java versions and want to switch between them easily, then go through this short 2-minute video.


  1. Ravi N says:

    Does Java 9 and higher versions available in 32 bit system?

  2. arav says:

    in my computer in cmd in version check it shows “1.8.0_281” and i in environment variable i have 15.0.2 saved in path. what should i do?

  3. gowseelan .k says:

    dowload for java windows 10

  4. Sam says:

    Sir, I downloaded Java SE Development kit 14.0.1 version Java in windows 10 … But it is not working. I have done all those things listed above …when ever I touch the icon it used to reinstall Java can I fix this

  5. Suchithra P V says:

    Thank you so much sir… it really worked

  6. Sara says:

    Awesome article with clean steps. I have installed it easily.. Thanks

  7. zu says:

    well written , thank you Sir , mine started working. Thanks !

  8. jitendra sen says:

    Jdk 10 is installed in my system and also environment variable is set.

  9. Poornima says:

    Hey,I tried installing Jdk-11.0.2._windows-x64_bin.exe,but when I typed in java -version in command prompt,it says’java’ is not recognized as an internal or external command,operable program or batch file.i even tried typing only java too.,,please help me,I am following your tutorial and I want to learn java,please let me know,what should I do now.

    1. Pankaj says:

      It means the PATH variable is not set properly, you will have to manually set it up in Environment variable as I have shown in the article.

      1. Ankit says:

        Thanks for keeping us updated with all the technologies by explaining them all in easy way. It really helping us all in a great way. Thanks again.

  10. jyothirmai says:

    Hello sir,
    i was trying to set the path , and when done and in command promt when i entered “java -version”, shows not any internal or external command, and i given the space also for”java -version”
    now what should i do

    1. harsh raj says:

      just type java and see the output.

      1. Keira-Lee says:

        It is a good game

  11. shubham goel says:

    Hi Pankaj,
    Jdk 8 is installed in my system and also environment variable is set.i want to make a program in eclipse so can u tell me when i will be install eclipse then i nedd to uninstall java or not.

  12. Jacky says:

    Good article

  13. kavita says:

    Hello sir,
    i was trying to set the path , and when done and in command promt when i entered “java-version”, shows an error :could not create java virtual machine and fatal exception has occured, program will exit.

    1. karthik says:

      java -version
      give space inbetween

  14. jenny says:

    Thanks really for the help.

  15. Pratiksha Sawant says:

    Hi Pankaj,

    Currently I have both java 8 and java 7 installed on my laptop. But I want to use java 7.
    I tried to have java 7 instead of java 8 on windows 10. Followed the video but could not get the java version changed on the cmd prompt.
    Please help.

    1. syed parveen says:

      put your jdk7 in your environment path

  16. pushpa says:

    hi i want to download complete java topics. wer is the option. could you please reply me soon as i have exams going on

  17. mahesh says:

    good one

  18. Sarawgi K says:

    thanks Sir…

  19. satya says:

    Nice Article……

  20. mashaoli says:

    very good

  21. Rajaselvan says:

    Excellent work. Your way of explanation is very good which is will be helpful to Java beginners. I really appreciate.

  22. Ibrahim says:

    Hello sir,
    i was trying to set the path , and when done and in command promt when i entered “java-version”, shows not any internal or external command,
    before i tried and was showing “could not find or load main class version,
    reply please,
    and thanks for this GREAT WORK.

    1. Pankaj says:

      you need to have a space, like “java -version”

      1. Ibrahim says:

        no didnt put any space between

Comments are closed.

Generic selectors
Exact matches only
Search in title
Search in content