final IVMInstall vmInstall = JavaRuntime.computeVMInstall(configuration);
if (!(vmInstall instanceof IVMInstall3)) {
return System.getProperty(JAVA_SPECIFICATION_VERSION);
}
final IVMInstall3 vmInstall3 = (IVMInstall3) vmInstall;
@SuppressWarnings("unchecked")
final Map<String, String> properties =
vmInstall3.evaluateSystemProperties(new String[] { JAVA_SPECIFICATION_VERSION }, new NullProgressMonitor());
return properties.get(JAVA_SPECIFICATION_VERSION);
}