Example:
package javaapplication1;
public class JavaApplication1 {
public static void main(String[] args) {
String javaVersion = System.getProperty("java.version");
System.out.println("java.version: " + javaVersion);
}
}
Read installed java version |
package javaapplication1;
public class JavaApplication1 {
public static void main(String[] args) {
String javaVersion = System.getProperty("java.version");
System.out.println("java.version: " + javaVersion);
}
}
Read installed java version |