Configuring startup.bat
You could have several versions of Apache Tomcat on your system. To ensure that the desired Tomcat version will be run, you must explicitly specify which one to use.
- Navigate to the tomcat_home\bin folder and find the startup.bat file.
- Right-click on the startup.bat file and select Edit with Notepad in the context menu.
- In the opened file, scroll down and enter new lines like this after the initial rem chunk ends.
setlocal
set CATALINA_HOME=tomcat_home
For example:
setlocal
set CATALINA_HOME=C:\apache-tomcat-9.0.73 - Save and close.
(c) 2023 Altair Engineering Inc. All Rights Reserved.