In this tutorial, I am going to show you how to set JAVA_HOME on Windows10 operating system.
Set JAVA_HOME on Windows10 :
It will take several steps to create JAVA_HOME.
Open Environment Variables :
Search for Advanced System Settings in the Search box like below:

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

Click on Environment Variables >

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

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

Now select the Path variable and click on the Edit button :

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

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

Click on OK.
Test :
Open the command prompt and execute below commands:

Happy Learning 🙂
I try it. But it’s not work for me. javac still unreconized
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
Best tuition on the subject I could find.
Worked 100%
Thank you.
As a full stack guy that gets around on Linux all day I found this setup in Windblows very very taxing. I was just trying to run a local Android Emulator for React Native development, just to give my kids some games without ads…
After hours of failure I found this.
*bowing*
Thank you, sir,
Neil