java: verify against core's version before doing anything