How do I get Java Runtime Environment (JRE) version?

Bookmark this example!  
Category: java.lang, viewed: 1353 time(s).
 
package org.kodejava.examples.lang;
 
public class JavaVersion {
    public static void main(String[] args) {
        // You can get the version of Java Runtime Environment
        // running on your machine by reading the "java.version"
        // property value from the system.
        String version = System.getProperty("java.version");
        
        // Just show to the world your JRE version :)
        System.out.println("JRE Version = " + version);
    }
}
 
 
Can't find what you are looking for? Join our FORUMS and ask some questions!

Most Viewed Examples

Latest Code Examples

100 Top & Latest


Locations of visitors to this page
eXTReMe Tracker
visitor stats
Get Chitika Premium