setting java version to 7