handle JDK mismatch