Changed java version to 1.7 in order to support newest features.