moving java version from 1.8 to 1.7