To install Java (JRE/JDK) in windows system, follow the following steps:

  • Download the latest version of JRE and JDK from
  • Install downloaded JRE and JDK.
  • Set the system “Path” variable to installed JDK’s bin path.
  • Add a new System Variable called “JAVA_HOME” and set the value to already installed JRE’s home.
  • To add the system variable follow the below path:

Computer > properties > Advanced System Settings > Environment Variables.

Here windows will recognize the installed java path using the Path variable. This variable is used to locate the JDK binaries like javac or java

Applications like Tomcat and other app servers use JAVA_HOME variable to run java applications. This is used to point to the location where java is installed.

You may also be interested in