Updated java version

Updated java version to 7