ProAnswers.org

How to get Java Runtime Environment (JRE) version?

public class Main {
public static void main(String[] args) {
String version = System.getProperty(“java.version”);

System.out.println("JRE Version = " + version);

}
}

output
JRE Version = 1.7.0