Configuring java


I am not able to run Java programs in atom even my environment variables path are correct It’s displaying every time when I run java code javac file not found If did manually and open .java file with an atom it is executing the code can anyone help me out with this