What's the easiest, cleanest, cheapest way to remove labels and adhesive stains from glass jars?

I am going to paint some glass jars but I’m having some trouble with removing the adhesive used for the labels.