MeandMy is absolutely right

When dogs in a pack greet each other they do a dance and jump up all over each other ... it comes naturally to them
When you bend down and scold him ....you're just doing "part of the dance"

Of course he's not gonna get it ... you're just playin along
Treat him like he's not there and the jumping up on you is gonna stop real soon