Hadronic production of J/ψ associated with a gluon