Failure to complete the terms of your probation can result in probation violation proceedings and possible jail time.
The defendant should either enroll and try to complete the classes on time, or explain the circumstances to his probation officer to see if he can make arrangements (such as the extension of probation) that will allow him to complete his sentence.

