Error: Cannot read A.java, right?
I used to have a similar problem. I think the editor you are working on is adding it's own extension to your java file. For example when you save you have something like: A.java.txt right?
This time, when you save, include " ". For example, "A.java"
That should allow javac to read A
Maybe to hide extensions for known file types may be permanent.