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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Code to get JRE version" Watch "Code to get JRE version" New topic
Author

Code to get JRE version

Vivg Gupta
Greenhorn

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
author
Rancher

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

Eric
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