Also remember that he said he had multiple versions of Java installed on his machine and it is possible that what Tomcat runs under may very well be different from what a console window would get. This is the case for me as well. I have three or four different versions of the JRE and what version is active in a process is dependent on the environment I set for that process.
If you are coding a servlet, you can use System.out.println( System.getProperty( "java.version" ) ); and that will show you the version that is active for that process. 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: Andrew Pliszka [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 04, 2007 2:06 PM To: Tomcat Users List Subject: Re: Version of Java being used by Tomcat There is one more thing related to java version and JSPs, there is a configuration setting for the version used to compile jsps. So even if you have 1.5 your JSPs still might compile in 1.4 mode. This is setup in the tomcat xml config file. Andrew Gurdeep Kaur (gurdeep) wrote: >java -version > >Should give you what is the default java version used > >Gurdeep > >-----Original Message----- >From: Christopher Schultz [mailto:[EMAIL PROTECTED] >Sent: Wednesday, April 04, 2007 1:00 PM >To: Tomcat Users List >Subject: Re: Version of Java being used by Tomcat > >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >Richard, > >Richard Dunne wrote: > > >>Aneez, Try typing "echo -version %JAVA% " at the prompt". works in >>dos anyway, not sure if tomcat has its own specific syntax. >> >> > >Never heard of that one before. As far as I know, "echo" on DOS does not >accept any arguments other than "ON", "OFF" or a message to display. > >%JAVA% expands to the value of the environment variable "JAVA", which is >not guaranteed to contain anything. For instance, I have Java installed >on my win32 box and the command interpreter blankly gives me: > >C:\Documents and Settings\Chris> echo -version %JAVA% >- -version %JAVA% > >C:\Documents and Settings\Chris> > >Not very helpful :( > >- -chris >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.4.7 (MingW32) >Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > >iD8DBQFGFAPc9CaO5/Lv0PARApXGAKCMj1GJCeTxV7cEI/2yrVoFs15iVQCgtaO4 >Dxs/dfqjdMg1utzoASO4CfA= >=L662 >-----END PGP SIGNATURE----- > >--------------------------------------------------------------------- >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] > > > > > --------------------------------------------------------------------- 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]