Java Runtime get version of Java runtime
public class Main { public static void main(String[] args) { // Print the version of the Java runtime Runtime.Version version = Runtime.version(); System.out.format("Number of processors = %s%n", version); }/*from w w w .jav a 2s . com*/ }