I was reading a thread where posters were using both of these about the same topic. I was going to post on that thread that they are not synonyms but held back as I know that pedants are not welcome (except for this safe space).
Envy is about wanting something someone else has, while jealousy is about fear of losing something you already have.