1) Extract file: jar xf ???/catalina.jar org/apache/catalina/util/ServerInfo.properties
2) Use you favorite file parsing thingy (grep, perl, awk, c, ??) to parse ServerInfo.properties
OR
Write a simple java program and have catalina.jar in your classpath: main(...) { String version = org.apache.catalina.util.ServerInfo.getServerInfo(); System.out.println(version); }
-Tim
Jon Felmey wrote:
Tim,
Thanks for your help. One more question. Is there any way to get the version from the command line?
Thanks, Jon
From: Tim Funk <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: Tomcat Users List <[EMAIL PROTECTED]> Subject: Re: Finding exact Tomcat version Date: Thu, 03 Jul 2003 11:52:02 -0400
One way: In a properties file: org.apache.catalina.util.ServerInfo.properties propertyname: server.info
-Tim
Jon Felmey wrote:
Hi, I am creating an install file using InstallAnywhere. Our program requires Tomcat 4.1.24. The problem is that in the registry all Tomcat 4.1.x are refered to as 4.1. So, when I check for the current version, I receive 4.1 which could represent 4.1.3 or 4.1.24, etc. Is there anyway to determine the exact version that is installed on a PC. I need to verify that 4.1.24 is installed.
Thanks alot
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]