Steady oscillatory states of a finite Josephson junction