support jdk8, retire jdk6