I copied this from the wildcat source at http://coolese.100free.com/


           sInfo += "OS Name: " + System.getProperty("os.name") + "\n";
sInfo += "OS Version: " + System.getProperty("os.version") + "\n"; sInfo += "Architecture: " + System.getProperty("os.arch") + "\n"; sInfo += "JVM Version: " + System.getProperty("java.runtime.version") + "\n"; sInfo += "JVM Vendor: " + System.getProperty("java.vm.vendor") + "\n";
           //Get the stuff Tomcat produces...
sInfo += "Tomcat Server version: " + org.apache.catalina.util.ServerInfo.getServerInfo() + "\n"; sInfo += "Tomcat Server built: " + org.apache.catalina.util.ServerInfo.getServerBuilt() + "\n"; sInfo += "Tomcat Server number: " + org.apache.catalina.util.ServerInfo.getServerNumber() + "\n";

Everything you need.... enjoy

You do know that the bin.... holds a version.bat and you could also just run that.


----- Original Message ----- From: "bachuba" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Thursday, June 07, 2007 5:26 PM
Subject: Programmatically Determine JVM Version used by Tomcat



Hi,
I'm fairly new to using Tomcat, but need to determine what JVM version (or
at least the path to it) a running Tomcat service is currently using on a
Windows system.  If I run tomcat5w.exe and click on the Java tab, I notice
the informaiton is listed there, but I would like to be able to get at that
programmatically.  We are currently using Tomcat version 5.0.28.  Could
somone please describe how this could be done?  Thanks.
--
View this message in context: http://www.nabble.com/Programmatically-Determine-JVM-Version-used-by-Tomcat-tf3884522.html#a11010153
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to