This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Tomcat and the fly likes How can we know what version of JRE is used by Tomcat ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "How can we know what version of JRE is used by Tomcat ?" Watch "How can we know what version of JRE is used by Tomcat ?" New topic
Author

How can we know what version of JRE is used by Tomcat ?

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,

I have set JAVA_HOME to jdk 1.5 under my Environment Variables .
How can i know that , what version of JRE is my TOMCAT is using ??

Please sugegst , thanks .


Save India From Corruption - Anna Hazare.
Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1221

Hi Ravi,

if you start Tomcat from the command line (with startup.sh or startup. bat inside the bin/ directory) it should print some information to the console. There you should see which JRE_HOME Tomcat currently uses.

Additionally it should show up in logs/catalina.out (after a Tomcat start) or you can see it in the command line string (at least on UNIX/Linux).

Another alternative would be a management application like Lambda probe which shows you lots of details about your Tomcat instance and web applications.

Marco
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14572
    
    7

You should be able to dial in via jconsole as well.

If a webapp needs to know the Java version, it can query the System property.

However, up through and including Tomcat6 you won't be strictly speaking running under a JRE. You have to have a JDK.


Customer surveys are for companies who didn't pay proper attention to begin with.
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thank you very much , I found a new tool Lambda probe
leo donahue
Ranch Hand

Joined: Apr 17, 2003
Posts: 327
Or you could simply execute the version.bat file from the bin folder using a command prompt.

Thanks, leo
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can we know what version of JRE is used by Tomcat ?
 
Similar Threads
String class can't find split method: wrong java version?
java.lang.UnsupportedClassVersionError
Removin java version 1.3.1 off my linux
Change JRE
can not run tomcat 5.5.9 with only jre