If you can snatch, clean, and squat without pain then do those things. Since you say you can press without pain but cannot jerk, I'm assuming the pain in the shoulder occurs when stabilizing the heavy weight overhead, not when pressing it off the shoulders. I would probably try to see if I could push press without pain.
That will allow you to overload the overhead position moreso than a strict press, but not quite as much as a jerk, while at the same time allowing you to practice the dip and drive of the jerk. Also, because you actually lock the weight out with your triceps rather than receiving it at arms length as in a jerk, the movement occurs more slowly and gives you more of a chance to feel if say the lockout is going to hurt or not (in which case I'd simply dump the barbell). Other than, I'd say don't do jerks until you can do them without pain, and then gradually build your way back up.