Except for old injuries that never completely healed, you should not be suffering joint pain at your age. For starters, you likely should shift to lighter weights.
A general rule is that, after 26, any muscle or joint injury you suffer will never completely heal. So
- avoid injury scrupulously. Don't accept gym challenges (even your own). Be wary of odd exercises, machines, routines. Don't do anything hard at first, always start easy. Be lazy, build up and take your time: you have the rest of your life. Don't work out while under the influence of alcohol, especially when with friends. I avoid certain sports, e.g., any martial arts, soccer, football, even baseball, b/c the variety of situations(and consequent accidents) is so unpredictable as to be uncontrollable. Sprinting, hurdles, gymnastics and high jump are risky too.
- avoid over-stressing muscles and joints. Keep the cardio up - maybe try the gym classes with music (the crowd is better-looking and friendlier).
- See a doctor if you suffer pain unduly.
- Avoid all toe-lift weight machines and weight sleds (sleds that you push as if pushing a truck) like the plague. Never use them, otherwise you may experience pain so severe it will change your "fight or flee" response to 100% "fight" even in a life-threatening situation. Do NOT challenge this suggestion especially if above the age of 40. Explanation: look up the term "plantar fasciitis".
I anticipate "someday soon" cures for tendon/joint pain but I've been waiting too long to expect their arrival before I die!