This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Reply to your question
Posted by Vivek Kumar on June 13, 2000 at 5:23 AM
> I am new to using a wintel machine and can't compile my code
> because after I run javac, I get a message that says it can't
> read the file. I have been using notepad documents saved as text
> files. I even tried textpad and still got the same result. If
> anyone can answer this I would appreciate it.
> Thank you
The problem is that you are saving it as text file.Save it as filename.java and your problem is solved.Also make sure that the file name and class name in your program(which is having main method) is same.
For futher question you can contact me.