I don't think you can completely stop being jealous. Jealousy of other people who have things that you want (or think that you want) is totally normal. To try to deny that is to deny that you are human.
I have found personally that the best antidote to jealousy is to accept that I have it 100%, rather than trying to suppress those feelings. The problem is not actually having the feelings of jealousy, but in not being ok with having those feelings. Once I have acknowledged those feelings fully, I often notice that they quickly pass, and I can go back to focusing on whatever I was doing before the feelings came.
And, to add on to this, when I think about it a bit more, I usually realize that I'm jealous not of the thing the person has, but of the feelings that I believe that thing will bring (happiness and fulfillment). And the truth is that perception is often wrong - success can bring unhappiness, while it is possible to be happy and fulfilled without conforming to anyone else's perception of "success."
I have found personally that the best antidote to jealousy is to accept that I have it 100%, rather than trying to suppress those feelings. The problem is not actually having the feelings of jealousy, but in not being ok with having those feelings. Once I have acknowledged those feelings fully, I often notice that they quickly pass, and I can go back to focusing on whatever I was doing before the feelings came.