add a check in the build so that jdk 1.6 isn't used