  In this paper, results on the J/$\psi$ cross section and polarization
measured via the dielectron decay channel at mid-rapidity in $p+p$ collisions
at $\sqrt{s}$ = 200 and 500 GeV in the STAR experiment are discussed. The first
measurement of $\psi(2S)$ to J/$\psi$ ratio at $\sqrt{s}$ = 500 GeV is also
reported.
