Introduction to Commutative Algebra, chapter 1, exercise 6 is this:
A ring $A$ is such that every ideal not contained in the nilradical contains a nonzero idempotent (that is, an element $e$ such that $e^2 = e \neq 0$). Prove that the nilradical and Jacobson radical of $A$ are equal.
As every prime ideal is contained in a maximal ideal, the nilradical must be contained in the Jacobson radical. Assume for contradiction that the Jacobson radical is not contained in the nilradical. Then there must be a nonzero idempotent $x \in \mathfrak{R}$.
Because $x\in \mathfrak{R}$, $1 - xy$ is a unit for all $y\in A$. So $1 - x$ is a unit. But we have
$$1 - x^2 = (1 + x)(1 - x) = 1 - x.$$
This implies $x = 0$, a contradiction.
Does my proof work? It appears to be much simpler than other proofs I have seen online.