update Java version from 7 to 8