Changegd the Java target to 1.7