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'.


Advertisements