The classical theory is discussed for the relativistic string with point masses at its ends. The dynamical equations are solved for the class of motions of this system when the time evolution parameter τ is the proper time of both massive string ends. In this case the solution of the boundary equations is given by the almost periodic functions. Constraints on the normal modes resulting from the orthonormal gauge conditions differ essentially from the Virasoro ones. Incidentally one obtains an exact solution for the half-infinite string with mass at one end. It is also proved that the exact solution for the string with massive ends cannot be a periodic function.