How to check tomcat server version and java version on server?

Started by Dipak Bhoi, November 09, 2014, 06:02:04 PM

Previous topic - Next topic

Dipak Bhoi

Hello Guys,

If you have a linux based cPanel server, then you can check it by below commands.

Quote#sh /usr/share/tomcat7/bin/version.sh

It will give output like as below.

QuoteUsing CATALINA_BASE:   /usr/local/jakarta/tomcat
Using CATALINA_HOME:   /usr/local/jakarta/tomcat
Using CATALINA_TMPDIR: /usr/local/jakarta/tomcat/temp
Using JRE_HOME:        /usr/local/jdk
Using CLASSPATH:       /usr/local/jakarta/tomcat/bin/bootstrap.jar
Server version: Apache Tomcat/5.5.30
Server built:   Jul 1 2010 08:18:58
Server number:  5.5.20.0
OS Name:        Linux
OS Version:     2.6.32-042stab093.4
Architecture:   amd64
JVM Version:    1.6.0_22-b04
JVM Vendor:     Sun Microsystems Inc.

To check the Java version fire below command.
Quote#sh /usr/share/tomcat7/bin/java -version

It will give output like as below.

Quotejava version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)


That's it. Enjoy !!
MilesWeb - 30-Day Money Back
cPanel Web Hosting - cPanel Hosting in India
Grab a Free SSL for your website.  WordPress Optimized Solution.