Update cache when installing Java