How to get Tomcat version number in Java [duplicate]
问题 This question already has answers here : how to find out running tomcat version (24 answers) Closed 5 years ago . How do I get the Tomcat/Catalina version number in JAVA? I've seen lots of how to do it via command line etc. but that's not code I can use, I also cannot use catalina.path as the version number has been stripped from the path. Please also note I want to use the version in code, so the various JSP solutions that I've looked at also do not work for me. Thanks 回答1: From a JSP In a