changes the java version