How to check Tomcat version Installed
Written on July 31, 2008 at 7:55 am by
mkyong
Sometime we need to find out what is our Tomcat version installed in our server. We can check Tomcat version with following command sh version.sh, this version.sh is located at tomcat bin folder
mkyong@mkyong-desktop:/usr/share/tomcat5.5/bin$ sh version.sh Using CATALINA_BASE: /usr/share/tomcat5.5 Using CATALINA_HOME: /usr/share/tomcat5.5 Using CATALINA_TMPDIR: /usr/share/tomcat5.5/temp Using JRE_HOME: /usr/lib/jvm/java-6-sun Server version: Apache Tomcat/5.5 Server built: Jan 3 2008 11:42:45 Server number: 5.5.25.0 OS Name: Linux OS Version: 2.6.24-19-generic Architecture: i386 JVM Version: 1.6.0_06-b02 JVM Vendor: Sun Microsystems Inc. mkyong@mkyong-desktop:/usr/share/tomcat5.5/bin$
Got it, Tomcat version is 5.5.25.0.
P.S Tomcat version.sh required we set up JAVA_HOME properly, please issue following command if hanvt set up JAVA_HOME environment.
export JAVA_HOME=<java jdk path>
Oracle Magazine (Free)
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world\'s largest enterprise software company.
Publisher : Oracle Corporation



Follow the below path
/usr/local/apache-tomcat-6.0.18/bin/version.sh
Will give below result:
Using CATALINA_BASE: /usr/local/apache-tomcat-6.0.18
Using CATALINA_HOME: /usr/local/apache-tomcat-6.0.18
Using CATALINA_TMPDIR: /usr/local/apache-tomcat-6.0.18/temp
Using JRE_HOME: /usr/java/jdk1.6.0_10
Server version: Apache Tomcat/6.0.18
Server built: Jul 22 2008 02:00:36
Server number: 6.0.18.0
OS Name: Linux
OS Version: 2.6.9-55.ELsmp
Architecture: i386
JVM Version: 1.6.0_10-rc-b28
JVM Vendor: Sun Microsystems Inc.
Thanks for your tip ~