How to set JAVA_HOME for Java in Windows?



Assuming you have installed Java in c:\Program Files\java\jdk directory −

  • Right-click on 'My Computer' and select 'Properties'.

  • Click the 'Environment variables' button under the 'Advanced' tab.

Now, add the 'JAVA_HOME' variable and set the path to the c:\Program Files\java\jdk'.

Updated on: 2020-06-13T12:49:30+05:30

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements