Do you feel pain right under your pattela? It could be a patelar tendon tendinite (the movement of your knee passing over your foot brings a lot os tension in this tendon)
Try streching your hamstrings and quadriceps and using 20 min of ice over your pain. But would be good to have someone checking your knee.