check java version in build