First, you get him neutered. Then, if he still tries, you set him off of you, or whatever he's humping, then tell him to sit, or even better, lay down. The object is to interrupt the behaviour and not let it be linked with any kind of reward whatsoever. Don't praise him for obeying until he's been distracted from the humping behaviour.
But - DO get him neutered.