Proof (Nakayama)
The second part follows from the first part by considering the quotient module $M/N$: if $J(M/N) = M/N$, then there exists $r\in J$ such that $(1+r)(M/N) = 0$.
Let $M$ be generated by a finite set as $M = Rm_1 + \ldots + Rm_n$. Hypothesis says $$ \begin{align*} M = JM = Jm_1 + \ldots + Jm_n. \end{align*} $$ For each $m_i$, there exists $r_{i1}, \ldots, r_{in}\in J$ such that $$ \begin{align*} m_i = r_{i1} m_1 + \ldots + r_{in} m_n \end{align*} $$ so in matrix notation $$ \begin{align*} \underbrace{\pmat{m_1 \\ \vdots \\ m_n}}_{\v m} = \underbrace{\pmat{r_{11} & \ldots & r_{1n} \\ \vdots & & \vdots \\ r_{n1} & \ldots & r_{nn}}}_{A} \pmat{m_1 \\ \vdots \\ m_n} \end{align*} $$ so $$ \begin{align*} (\id - A)\v m = \v 0. \end{align*} $$
Multiplying by the adjugate yields $$ \begin{align*} \det(\id - A) \v m = \v 0 \end{align*} $$ so as $M$ is generated by $m_1, \ldots, m_n$ $$ \begin{align*} \det(\id - A) M = 0. \end{align*} $$
Since $A$ is a matrix in $J$, expand the determinant to see $\det(\id - A) = 1 + r$ for some $r\in J$.