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.

 Before editing any files, the Tomcat server must be stopped.

 

  1. Navigate to the tomcat_home\bin folder and find the startup.bat file.
  2. Right-click on the startup.bat file and select Edit with Notepad in the context menu.
  3. 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

  4. Save and close.

 

 

(c) 2023 Altair Engineering Inc. All Rights Reserved.

Intellectual Property Rights Notice | Technical Support