Juventus have signed French striker Nicolas Anelka from Shanghai Shenhua on a five-month rolling contract, according to club president Beppe Moratta.