Perry Smith

Java Questions & Answers

Home / Java Q & A Archive Page 1 / Java Q & A Archive / Java Q & A Main Page



Ben

Hi. I've been trying to compile this .java file and it says:
Can't read: 1 Error
I can't get past this with all the .java files I have. I have Win 95.
I'm typing the applets out of a book called "Java Manual of Style" to practice. I'm very new to this. Everything else works, such as AppletViewer and such. I use JDK (Java Developers Kit). What am I doing wrong?



Response

I have seen this error when something is not correctly named. Make sure that your source code file name and the class name contained within your source file are the same. Also, remember that java is case sensitive. It will not forgive you for forgetting this. Using the wrong case is the same thing as misnaming.

Dedicus

Home / Java Q & A Archive Page 1 / Java Q & A Archive / Java Q & A Main Page