Even when maried to a Japanese national (as is my case) you need to show that you are financially stable (short-term) and can work (long-term).
As a student you could enter Japan, and attend courses, but as a student you wouldn't be able to take up (legal) full-time employment and your rights (healthcare, housing, even getting a cellphone) would be seriously reduced.