Added check for java version.