Jumping up is a social behavior that can take a long time to correct. I recommend teaching the dog to sit whenever it greets a person.
A good way to start this training is to do some hand feeding with the dog so that we can get a lot of repetition with sitting. Take a hand full of kibble from the dog’s meal, ask the dog to sit, reward the dog with a piece of kibble . Release the dog on command and repeat the exercise at least 10-15 times. Eventually the dog will remember that if he sits in front of you he will get a treat. This will create the sit as a default command whenever he comes to you because of repetition.
If a dog learns to sit, it cannot jump if it is sitting (counter conditioning). Also, teach the dog to sit for greetings with strangers. Use a treat to get the dog’s focus while he is sitting. If the dog is on leash then you can step on the leash when the dog is being greeted to prevent them from jumping up. If the dog jumps on you move into his space. The dog will move backwards. Then ask him to sit. If someone encourages a dog to jump up, then the previous training will become ineffective.