String curJavaVersion = System.getProperty("java.version", "1.6");
checkJavaVersion(curJavaVersion);
}
static void checkJavaVersion(String curJavaVersion) {
if (new VersionNumber(curJavaVersion).compareTo(new VersionNumber("1.6")) < 0) {
LOG.info("- Current java version {} is less than 1.6. nGrinder Agent might not work well", curJavaVersion);
}
}