Solve java version error