Hi Nancy,
I agree with what Glyttch said. I gave him 2 thumbs up.
You had this boyfriend for 17 years. That is a long time to be with a man without marriage. You were just his shack-up woman( sorry for being blunt). That's what happens when people don't commit and don't get married, the moment one wants to end the relationship, that's the end of the story. You spent all this time with him and he decided to dump you just like that. I'm sorry about that. You did not say if you had kids with him, I hope not because those kids will suffer a lot.
He does not really love you. It shows in his actions. Did you ask him if he still wants you if you found a job? I think that he pretty made up his mind to end the relationship. If I were you, I would not stay any longer. As Glyttch said, it's wise to stay with relatives or close friends until you found a good job so you can support yourself. It's always a very good idea for women to have a profession so that we won't be at the mercy of men like your boyfriend.
With everything very expensive, nowadays, I think that both couples should go to work to be able to afford a pretty decent lifestyle.
Take care and hope you'll be able to cope with this. And learn the lesson: NO MORE SHACKING UP WITH A MAN. Don't give FREE SEX.