The "cannot read" error comes from the javac compiler. The compiler is reporting that it can not find a file named m.java (in the current directory).
If you enter "dir" in the Command Prompt, you will get a list of files in the current directory. According to the compiler, you will not see m.java. So either the file is somewhere else or it is named something besides m.java.
A common problem occurs when you use Notepad to create the .java file. When you save the file, Notepad may add .txt to the end of the file name. So when you enter m.java, Notepad saves the file as m.java.txt. Then the compiler obviously can not find m.java. If this is your problem, an easy fix it to put "" around the file name in the Notepad Save As dialog - "m.java" for example.