Home > OS >  Unable to install Tomcat 9 with service.bat
Unable to install Tomcat 9 with service.bat

Time:10-16

I have downloaded tomcat 64-bit windows zip. I try to install tomcat 9 with service.bat file in windows 10. But while executing service.bat from command line I see following error, eventhough I have tomcat9.exe in place and CATALINA_HOME correctly defined in env variable. I am not sure what is missing here. Your suggestions greatly help.

Error while executing service.bat

Neither the Tomcat9.exe file nor the 'tomcat9'.exe file was found...
Either the CATALINA_HOME environment variable is not defined correctly or
the incorrect service name has been used.
Both the CATALINA_HOME environment variable and the correct service name
are required to run this program.
CATALINA_HOME: C:\Program Files\apache-tomcat-9.0.54

Error image:

Error while exectng service.bat

Downloaded zip directory (tomcat9.exe available) tomcat9.exe available in directory

CodePudding user response:

CATALINA_HOME: C:\Program Files\apache-tomcat-9.0.54

The above value of CATALINA_HOME does not match your configuration: your files are not in "C:\Program Files\apache-tomcat-9.0.54" but are in "C:\Users\username\Downloads\apache-tomcat-9.0.54".

Just unset CATALINA_HOME. The service.bat script is able to guess the value for that variable.

  • Related