Bessel beams generated with non-ideal axicons are affected by aberrations. We introduce a method to retrieve the complex amplitude of a Bessel beam from intensity measurements alone, and then use this information to correct the wavefront and intensity profile using a deformable mirror.