you have to finish 12th to apply. a better choice would be to apply for a university and mext at the same time. you can join university and when mext results get out in December, you can drop your university before paying the 2nd term fee which is usually paid at the end of December and go to japan.