I installed Apache Tomcat 6.0 to a C:/Program Files
folder and I set the environmental variables JAVA_HOME
and CATALINA_HOME
, but when
Set the CATALINA_HOME : C:\apache-tomcat-9.0.27 The path of the Tomcat directory (no need to add "bin") CLASSPATH : C:\apache-tomcat-9.0.27\lib
For Windows 10 newer versions, remove the ";" and update each entry to the PATH variable
%PATH%;
%JAVA_HOME%\bin;
%CATALINA_HOME%\bin;
%CLASSPATH%\servlet-api.jar;
In environment variables define CATALINA_HOME as a new variable and the value for the variable value assign to >>> C:\apache\apache-tomcat-7.0.40
in the path append this %CATALINA_HOME%\bin to get the command "catalina start" to work
Make sure you cd your directory on the cmd window to the path where the Tomcat is before you you call the service.bat file