This is what I got when trying to run the startup.sh script
thor@host01 ~$ sudo /opt/apache-tomcat-11/bin/startup.sh
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
This suggests you need to install some version of java, or a different version than what you have installed. Tomcat v11 needs java v17 or greater. This will probably get you working in this lab: