make program run on jdk8