When you open multiple tomcat windows, it is difficult to distinguish which window is which project. Setting the window name can help distinguish.
Enter the bin directory of tomcat, such as T:\apache-tomcat-9.0.60-windows-x64\apache-tomcat-9.0.60\bin
, find the catalina.bat
file, and open it with a text editor.
You can see in the bottom of the description, there is a parameter called TITLE
, and the default is Tomcat
. You can modify it according to your needs. It can have spaces.
rem TITLE (Optional) Specify the title of Tomcat window. The default
rem TITLE is Tomcat if it's not specified.
rem Example (all one line)
rem set TITLE=Tomcat.Cluster#1.Server#1 [%DATE% %TIME%]
Search for TITLE
in the file, and find the following section. Fill in your name after set TITLE
.
:doStart
shift
rem Set the title of the window
rem if "%TITLE%" == "" set TITLE=Tomcat
if "%TITLE%" == "" set TITLE=YOURNAME YOURSUBNAME
set _EXECJAVA=start "%TITLE%" %_RUNJAVA%
if not ""%1"" == ""-security"" goto execCmd
shift
echo Using Security Manager
set "SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy"
goto execCmd