Error: cannot find symbol

My java code is completely fine because I tried to run it in other platform successfully, and my work get full marks too.
but when I use atom in my Mac, the classes in the same file cannot be recognised and run.