added java version enforcement to Java 1.7