Most people get the class 2 medical at the start of the training or at least before going solo if they want the full JAA PPL (rather than the NPPL). You can go solo with just the NPPL medical requirements, but since you're going to the doctor anyway you might as well get it done in the first place rather than waiting till the end of your training.