Revert required java version to 7.