Setting the JAVA_HOME, CATALINA_HOME Environment Variable on Windows
One can do using command prompt:
set JAVA_HOME=C:\ "top level directory of your java install"set CATALINA_HOME=C:\ "top level directory of your Tomcat install"set PATH=%PATH%;%JAVA_HOME%\bin;%CATALINA_HOME%\bin
OR you can do the same:
- Go to system properties
- Go to environment variables and add a new variable with the name
JAVA_HOMEand provide variable value asC:\ "top level directory of your java install" - Go to environment variables and add a new variable with the name
CATALINA_HOMEand provide variable value asC:\ "top level directory of your Tomcat install" - In path variable add a new variable value as
;%CATALINA_HOME%\bin;