Java 8 – How to set JAVA_HOME on Windows10

By | 2017-12-19T15:15:41+00:00 December 19th, 2017|java8|3 Comments

In this tutorials, I am going to show you how to set  JAVA_HOME on Windows10 operating system.

Note : Assuming Java8 installed on your local (Windows10) machine, if not, you can see our previous tutorials how to install Java8 on Windows10.

Set JAVA_HOME on Windows10 :

It will take several steps to create  JAVA_HOME.

Open Environment Variables :

Search for Advanced System Settings in Search box like below:

JAVA_HOME on windows10

by selecting the above Advanced System Settings you can see the below System Properties window.

JAVA_HOME on windows10

Click on Environment Variables >

Click in New button under System variables session to create JAVA_HOME :

JAVA_HOME on windows10

Enter variable name as “JAVA_HOME”, give variable value as your JDK path and click Ok.

Note : variable value should till java home path, it doesn’t include \bin.

JAVA_HOME on Windows10

Now select Path variable and click on Edit button :

JAVA_HOME on windws10

Now opens another window like below: This is new widow introduced from Windows10.

JAVA_HOME windows10

Here click on new button and add environment variable %JAVA_HOME%\bin like below.

JAVA_HOME on Windows10

Click on OK.

Test :

Open command prompt and execute below  commands :

JAVA_HOME

Happy Learning 🙂

About the Author:

Hi Folks, you have reach this so far, that shows you like what you are learning. Then why don't you support us to improve for bettor tutorials by leaving your valuable comments and why not you keep in touch with us for latest updates on your favorite blog @ facebook , twitter , Or Google+ ,

3 Comments

  1. somsak.bst@gmail.com'
    Somsak Bootsritha February 19, 2018 at 2:27 am - Reply

    I try it. But it’s not work for me. javac still unreconized

    • chandrashekhar February 19, 2018 at 3:08 am - Reply

      Hi Somsak,

      You can close your cmd prompt once and reopen then check once. If you all done well it works.
      Keep Learning 🙂

      Thanks,
      Chandra Shekhar G

  2. tom911s@hotmail.com'
    Tom Smith April 27, 2018 at 10:33 am - Reply

    Best tuition on the subject I could find.
    Worked 100%
    Thank you.

Leave A Comment