The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
June 2000

Advertisement

Advertisement

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 Artima Forums.

Message:

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

Hi,
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.
Bye
Vivek






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us