Meaningless Drivel is fun!*
The moose likes HTML, CSS and JavaScript and the fly likes Code to get JRE version Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Code to get JRE version" Watch "Code to get JRE version" New topic

Code to get JRE version

Vivg Gupta

Joined: May 04, 2006
Posts: 16
Is there any means by which i can get the JRE version using some code? I want an alert in my application that will pop up only after checking the JRE version. So, for that i need to first check what version of JRE exists on the client machine on which the application will run.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
It is amazing how this works: TRY IT

Ramasubbhu Allur Kuppusamy
Ranch Hand

Joined: Sep 16, 2005
Posts: 120
In Java, you have the following method in the System Class

public static String getProperty(String key)

where key has to be "java.version" for your requirement.

However, I don't know the equivalent in Javascript.

Regards,<br />Ram.<br />SCJP 1.4
jQuery in Action, 2nd edition
subject: Code to get JRE version
Similar Threads
getting list of JRE args
JSP code for JRE version
Problem with configuring ClassLoader in Websphere Application Server 6.1
error message
How to get jre version of client thru java