I don’t think it is a problem related to the operating system. I think it has something to do with your directories structure.
The message says “file not found”, so I would think that the source files you are trying to compile are not in the same folder or directory that you are at the time of the command execution.
“javac” can run in whatever directory you are if you set you path environment variable correctly, but this is not true for source files, so you need to be sure you are in the right directory, or in any case, make sure to specify the full path in the source file name.
Hope this helps.