Thanks, this is just what I was looking for.
Mark H. Wood wrote:
>
> Well, that was silly. The Tomcat HTML Manager already provides the JRE
> version at the bottom of the page, if you wanted to manually check
> it. To check by script, you could use the plain Manager:
>
> [EMAIL PROTECTED] ~
Well, that was silly. The Tomcat HTML Manager already provides the JRE
version at the bottom of the page, if you wanted to manually check
it. To check by script, you could use the plain Manager:
[EMAIL PROTECTED] ~ $ wget --quiet -O - --user USER --password PASSWORD
http://localhost:8080/manage
If you fetch 'java.runtime.version' in freestanding code then you'll
get the version of the current default JRE, which might not be what
Tomcat is using. But if you fetch it in a servlet, then you should
get the version of the JRE that's running Tomcat, no?
<%@ page language="java" contentType="
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"
to compare the two strings to see if they're not equal.
Or if one equals something it shouldn't...
> -Original Message-
> From: David kerber [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 07, 2007 10:31 AM
> To: Tomcat Users List
> Subject: Re: Programmatically Determine JVM
.
-Original Message-
From: bachuba [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 07, 2007 2:48 PM
To: users@tomcat.apache.org
Subject: Re: Programmatically Determine JVM Version used by Tomcat
I believe the suggested solutions will only poll the java version installed
on the computer, correct? I
t: Re: Programmatically Determine JVM Version used by Tomcat
I believe the suggested solutions will only poll the java version installed
on the computer, correct? I probably should have provided a little more
detail on what is needed.
Tomcat is being installed with JAVA_HOME pointed toward a 1.4 version of
can't you open up the bat or .sh file and just make the change there?
-Original Message-
From: bachuba [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 07, 2007 3:48 PM
To: users@tomcat.apache.org
Subject: Re: Programmatically Determine JVM Version used by Tomcat
I believe the sugg
I believe the suggested solutions will only poll the java version installed
on the computer, correct? I probably should have provided a little more
detail on what is needed.
Tomcat is being installed with JAVA_HOME pointed toward a 1.4 version of
java. Later, JAVA 1.5 is installed and JAVA_HOME
bachuba wrote:
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 b
> From: bachuba [mailto:[EMAIL PROTECTED]
> Subject: Programmatically Determine JVM Version used by Tomcat
>
> I'm fairly new to using Tomcat, but need to determine what
> JVM version (or at least the path to it)
It's available in a system property:
System.getProperty("java.runtime.version
11 matches
Mail list logo