• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

accessing JDK information from .jsp page

 
Sara Watson
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to display the JDK version that is being used by my web server. How can I access that information from my .jsp page? What object/method call will give me that info?
Thanks for your help,
Sara
 
Mike Firkser
Ranch Hand
Posts: 249
Java Oracle PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following code will print out on your jsp page, a bunch of properties:

That prints out a bunch, but I found a property called "java.version" that may be what you're looking for.
 
Mike Firkser
Ranch Hand
Posts: 249
Java Oracle PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is also a property called "java.runtime.version". Print them all out on a test page and see what you need.
 
Sara Watson
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mike. That's just what I needed.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic