wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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
I agree. Here's the link: http://aspose.com/file-tools
subject: Code to get JRE version
Similar Threads
JSP code for JRE version
error message
getting list of JRE args
Problem with configuring ClassLoader in Websphere Application Server 6.1
How to get jre version of client thru java