tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gurdeep Kaur \(gurdeep\)" <gurd...@cisco.com>
Subject RE: Version of Java being used by Tomcat
Date Wed, 04 Apr 2007 20:01:42 GMT
java -version 

Should give you what is the default java version used

Gurdeep 

-----Original Message-----
From: Christopher Schultz [mailto:chris@christopherschultz.net] 
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

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


Mime
View raw message