I'm not sure why this is happening as I have the latest JDK installed and added the PATH in my Environment Variables. But this is the error I'm getting in Atom AND in my Command Prompt:
javac: file not found: Lab1Main.java
Usage: javac <options> <source files>
use -help for a list of possible options
[Finished in 0.386s]
JAVA is all extremely new to me (only 2 weeks into the college course I'm taking currently) so I'm at the very bottom of knowing what to do here. (Not to mention, I've barely used Atom.) Do I need to set a PATH variable within Atom as well? I would really like to use Atom over Netbeans as it seems very easy to get things done.
Here's a screen shot of my PATH variables.
Even I got the same error. Seem like it's not getting the correct path of the java file. I'm opening from the atom icon.. could that be the cause?
[Command: cmd '/c javac -Xlint PalindromeExample.java && java PalindromeExample']
javac: file not found: PalindromeExample.java
Usage: javac <options> <source files>
use -help for a list of possible options
[Finished in 0.29s]
Could you check if there are any spaces in the directory names and/or filenames? You can check this by running the script and then showing the output in the new tab (see image below for icon).

On mac (where I'm working on, having files and directories with spaces in them is no problem) but earlier this week I assisted someone with the same error: "file not found" on windows. Renaming the folder that had a space in it was a quick fix and afterward, it worked just fine. Only problem is that I don't have windows machine available so I can't do any further testing.
I was able to get rid of this error by changing the 'Default Current Working Director (CWD) Behavior' to 'Directory of the script', in the 'script' Settings.
PS:
The line "javac: file not found: Lab1Main.java" is an error code produced by javac. This means that indeed javac was called and hence the error was not due to your path variables. The fact that javac cant find the file you are trying to run means that something is wrong with the \
Could you check if there are any spaces in the directory names and/or filenames? You can check this by running the script and then showing the output in the new tab (see image below for icon).
On mac (where I'm working on, having files and directories with spaces in them is no problem) but earlier this week I assisted someone with the same error: "file not found" on windows. Renaming the folder that had a space in it was a quick fix and afterward, it worked just fine. Only problem is that I don't have windows machine available so I can't do any further testing.
do you know how to get rid of the spaces?
Should be fixed in #2470. Let me know if it is not.
Most helpful comment
I was able to get rid of this error by changing the 'Default Current Working Director (CWD) Behavior' to 'Directory of the script', in the 'script' Settings.
PS:
The line "javac: file not found: Lab1Main.java" is an error code produced by javac. This means that indeed javac was called and hence the error was not due to your path variables. The fact that javac cant find the file you are trying to run means that something is wrong with the \