File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Query the Java 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 » Java » Java in General
Bookmark "Query the Java version?" Watch "Query the Java version?" New topic

Query the Java version?

Ken Seehof

Joined: May 07, 2004
Posts: 9
How do I query the current JRE version at runtime?
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30130

Ken, has an applet that does just that. If you scroll down to the bottom of the page, they show the code that they used to write the applet.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Tim West
Ranch Hand

Joined: Mar 15, 2004
Posts: 539
I haven't looked, but I'm guessing they use System.getProperties() - see the System JavaDoc.

Tony Morris
Ranch Hand

Joined: Sep 24, 2003
Posts: 1608

Tony Morris
Java Q&A (FAQ, Trivia)
Don't get me started about those stupid light bulbs.
subject: Query the Java version?
Similar Threads
Updating an object in Hibernate without loading entire object
regarding version of scjp
database output in an XML format
Hibernate: invalid column name!
loops in java