This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .

 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18091
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much , I found a new tool Lambda probe
 
leo donahue
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or you could simply execute the version.bat file from the bin folder using a command prompt.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic