Resolve imcompetible issues by jdk version