i am facing problem while compiling a java program i am using command promt to run the program . i have kept the file name and class name both same . also i set the path , i have also set the classpath .
the only reason i can come up with is that the may be the file gets saved with a ".txt" extension inside of a ".java" extensions, as filename.java.txt.
it shows the error
javac : file not found <file name.java>
if anyone have any idea about this please tell me.