That would show the version that is default for that console. You might do better to look at the configuration for the Tomcat server to see where it looks for the JRE. That would let you know for sure. If you are running on a WinXXX platform and as a service, you could look at the settings for the environment there as well.
An easy way would be to use log( System.getProperties().getProperty( "java.version" ); or something like that. If you want to see all of the environment properties you are running in, this should work. . . . Properties p = System.getProperties(); Enumeration e = p.keys(); while( e.hasMoreElements() ) { String s = (String)e.nextElement(); System.out.println( s + " = " + p.getProperty( s ) ); } . . . 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: Richard Dunne [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 04, 2007 12:49 PM To: Tomcat Users List Subject: Re: Version of Java being used by Tomcat Aneez, Try typing "echo -version %JAVA% " at the prompt". works in dos anyway, not sure if tomcat has its own specific syntax. Richard. ----- Original Message ---- From: Aneez Backer <[EMAIL PROTECTED]> To: users@tomcat.apache.org Sent: Wednesday, April 4, 2007 7:37:59 PM Subject: Version of Java being used by Tomcat Hi I have two versions of JAVA installed on my terminal. Is there any possible way to know which version of JAVA is being used by Tomcat 5.0.28 ??? Aneez --------------------------------- Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. ____________________________________________________________________________ ________ Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]