I have a filename named \"first.java\" saved on my desktop in notepad++. When I run the cmd command \"javac first.java\" it gives me this error.
javac: file
Sometimes this issue occurs, If you are creating a java file for the first time in your system. The Extension of your Java file gets saved as the text file.
e.g Example.java.txt (wrong extension)
You need to change the text file extension to java file.
It should be like:
Example.java (right extension)