Evolution of Jovian planets in a self-gravitating planetesimal disk