We give a parallel proof of Barnes' first lemma and of its finite analogue. In both cases we use the Mellin transform. In the classical case, the proof avoids the residue theorem. In the finite case the Gamma function is replaced by the Gaussian sum function and the beta function by the Jacobi sum function.