I am not aJW- my friend is- the one that won't talk to me because the elders consider me bad association.
The obvious conclusion to be drawn from this is that the person you refer to as a "friend," is not a friend at all. This person's like/respect for you is subject to the edicts of the cult that this so-called "friend" follows, as well as the directives of said cult's management.
I had a very similar experience to yours. I got into some minor trouble with the local police when I was still attending the meetings (I was never baptized). I came home one day from shopping with mom to find a gathering of elders in our living room, wanting to speak with me. They threatened to disassociate me unless I terminated all association with a person who was my closest friend, who was the unbaptized son of a family in our congregation. I still remember the words of the jerk elder who led the inquiry, "you're this close to having your name announced from the platform." (spoken while holding thumb and forefinger closely together and put very close to my face) I laughed in their faces, told them I could care less if anyone from the congregation ever spoke to me again, because "they're all a bunch of f*%king idiots." I also told them I wouldn't honor their demands in even the smallest way.
They never disassociated me, mabye because my father was PO and also because they knew it wouldn't have any adverse effect on me. The person they told me to stay away from remains my closest friend, 25 + years after the JWs threatened me to stop associating with him. He stopped attending about the same time I did, and to me, he is the brother I never had. I could not ask for a better friend. I'm so glad I was wise enough at the time to understand the game and not let the Watchtower Corporation Cult ruin another aspect of my life.
The point I'm making is, you need to say "goodbye," to that person who purports to be your friend, but has demonstrated that such "friendship," if you can call it that, is conditional in nature. "Comply with the cult or I'm not your friend!" What kind of friend is that?