updated Java version to 7