File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 15385
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:
subject: Code to get JRE version
jQuery in Action, 3rd edition