One problem with this is that you have to know where the JRE for 1.5 was
installed. There is nothing that guarantees that the install path is the
default. You might try to get the version information from the binary that
is running if the OS version supports it. It might be more appropriate to
try to load a required class and report the error when you encounter it.

Robert S. Harper
Senior Engineer
Information Access Technology, Inc.
1100 East 6600 South, Suite 300
Salt Lake City Utah USA 84121-7411
(801)265-8800 Ext. 255 
FAX (801)265-8880
 

This e-mail is intended only for the addressee and may contain confidential
and/or privileged information. Any review, retransmission, or action taken
upon this information by persons other than the intended recipient is
prohibited by law. If you received this communication in error, please
contact us immediately at 801-265-8800. Although this e-mail and any
attachments are believed to be free of any virus or other defect, it is the
responsibility of the recipient to ensure that anything received or opened
is virus free. No responsibility is accepted by IAT for any loss or damage
in the event that such a virus or defect exists.
-----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 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 updated, but the Tomcat
service is still using 1.4 (verified by running tomcat5w.exe and clicking on
the Java tab).  This value either needs to be updated or the Tomcat service
uninstalled and reinstalled with the new JAVA_HOME.  Sometimes this doesn't
happen causing issues with our application, so I'd like to write a program
that detects when this situation occurs (JAVA_HOME set to 1.5, Tomcat using
1.4).  Thanks.
-- 
View this message in context:
http://www.nabble.com/Programmatically-Determine-JVM-Version-used-by-Tomcat-
tf3884522.html#a11015926
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