This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Code to get JRE version

 
Vivg Gupta
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is amazing how this works: TRY IT

Eric
 
Ramasubbhu Allur Kuppusamy
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic