fix the JDK version incompartible problem