The paper suggests an explicit form of a general integral of motion for some classes of dynamical systems including n-degree-of-freedom mechanical systems subject to (n - 1) virtual holonomic constraints. The computation of this integral opens several possibilities for generating and further exponential orbital stabilization of solutions in nonlinear feedback systems. An illustrative example is given.