There are certain paints that are made for glass. Many are acrylic paints, and you can look on the jar for what surfaces the paint will stick to.