Here's an alternate to the two previous good answers.
Since the integral depends on $a$ define $I(a) = \displaystyle \int_0^{\infty}e^{-ax}J_0(x)dx$. Differentiate this with respect to $a$ to get $I'(a) = \displaystyle \int_0^{\infty} -e^{-ax}xJ_0(x)dx$. Multiply this by $a^2$ and integrate by parts twice, at which point we have
$$a^2 I'(a) = -aI(a) - \int_0^{\infty}e^{-ax}[J'_0(x)+x J''_0(x)]dx$$
which can be rearranged to
$$a^2 I'(a) + aI(a)= - \int_0^{\infty}e^{-ax}[J'_0(x)+x J''_0(x)]dx$$
Add $I'(a)$ to each side, which gives
$$a^2 I'(a) + I'(a) + aI(a)= - \int_0^{\infty}e^{-ax}[x J_0(x) + J'_0(x)+x J''_0(x)]dx = 0$$
since $J_0(x)$ satisfies Bessel's equation, $x J_0(x) + J'_0(x)+x J''_0(x)=0$. You can now solve $a^2 I'(a) + I'(a) + aI(a)=0$, which gives
$$I(a) = \dfrac{c}{\sqrt{1 + a^2}}$$
Using $I(0) =\displaystyle \int_0^{\infty}J_0(x)dx = 1$ gives the desired result.