Simulation of Josephson junction in a microwave field