changed to Java 6 and ensuring 7 is absent