To shoot an object behind glass and avoid reflections from ambient light, find the angle where the least reflection is visible and adjust your shutter speed and/or aperture to accommodate a little less light.
This image was taken at shutter speed 1/125 with an aperture of f/13 and ISO 6400.