aspose file tools
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 Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 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: 15379
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
It is sorta covered in the JavaRanch Style Guide.
subject: Code to get JRE version