If so, then, yes, you leave Japan, then apply for the student visa. Allow enough time for processing before the October term starts. If it's anything like work visas, it'll take a couple of months. Of course, you'll need to be accepted by the school, which means you have to prove you can pay for the courses.