Updated java version to 7