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: 13-Jun-2020

559 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements