make jdk1.8 work