How to set JAVA_HOME for Java in Windows?

Java Programming Java8Object Oriented ProgrammingJava Technologies

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 12:49:30