What exercises can I do to prevent runners knee?

Many options. Just avoid hitting the ground hard. You can swim or do weights and use gym equipment for exercises or simply walk but you have to do fast/brisk walking to get good and adequate exercise..