The early evolution of Jupiter in the tidal field of the Sun