The models of rf-driven Josephson junctions are investigated as the perturb
ed systems. It is shown that the heteroclinic orbits corrected by perturbat
ions are stable if some relations between the initial constants and system
parameters are satisfied, which leads to Melnikov chaos: To stabilize chaos
one has to make the control parameters fitting the relations. The result i
s compared with the previous numerical work and a good agreement is found.