Hello everyone. I really think this is a very great place to talk about java. I have this problem anytime i'm compiling, i have to save the name of my program as "myProgram.java". Please, i would like to know how i can solve this problem. Thank you very much for your assistance.
are you having the problem when you are compiling or when you are attempting to execute the program after compiling? class not found errors usually come during the execution process using the java interpretter.
can you cut/paste the exact command and error you are getting into a note?
Live, learn and do!
Joined: Aug 25, 2004
The filename is always the same with my public class. The problem really is that anytime i have to save my programs, they have to be between qoutes. For example: "myProgram.java" . If i don't do it this way, i'll receive error when compiling, and if i check the icon it's with the extension .txt instead of .java. Besides that though, they run compile and run perfectly. Thank you very much for your assistance.
are you using Notepad? if so, when you save, there are two (maybe 3) boxes at the bottom. one is the filename, the other is the file type. if the type is set to ".txt", Notepad appends that to the end of the name, unless you put it in double quotes (which sounds like what you're saying.
if you change that bottom box to "all files" (or whatever), then you don't have to use quotes.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors