>>>>> "Octavian" == Octavian Tanase <[EMAIL PROTECTED]> writes:
Octavian> I noticed a typo. Java is case sensitive. Try javac
Octavian> Counter.java, i.e. rename your file from counter.java to
Octavian> Counter.java.
"Jeff Rancier" <[EMAIL PROTECTED]>:
Your class name must match the name of the java file. Java is case
sensitive. Rename your file from
counter.java
to
Counter.java
Thank you for the replies. It seems there is a buglet in the way
ntemacs handles filenames. You are correct about the change of
filename. If I go to the filesystem and change the spelling so that
the first letter is capitalized, the compilation works. However,
saving the buffer within ntemacs, using a capital letter, has no
effect. Although ntemacs reports in the minibuffer that it is writing
the file "Counter.java," in fact it writes the file as "counter.java."
This is the reason I had the problem yesterday, because I had done C-x
C-w to write the file "Counter.java" and that did not work. (In fact,
it gives the message, 'overwrite counter.java?', which of course it
should not do, since they ought to be 2 different files).
Thanks again. And my apologies, I think I accidently sent this mail
before it was ready to be sent. ;-(
mp
Octavian> -----Original Message----- From: Michael Powe
Octavian> [mailto:[EMAIL PROTECTED]] Sent: Monday, July 09,
Octavian> 2001 4:07 PM To: [EMAIL PROTECTED] Subject: Compilation
Octavian> problems on Win2k
Octavian> Hello,
Octavian> I am just learning to program in java. I have the JDE
Octavian> set up on a Win2k Pro system.
Octavian> GNU Emacs 20.7.1 (i386-*-nt5.0.2195) of Tue Jun 13 2000
Octavian> on buffy
Octavian> Everything seems to work fine, except when I compile, I
Octavian> get this error:
Octavian> 8<-------------------------->8 cd c:/Program
Octavian> Files/emacs/src/ C:\jdk1.3.1\bin\javac counter.java
Octavian> counter.java:12: class Counter is public, should be
Octavian> declared in a file named Counter.java public class
Octavian> Counter ^ 1 error
Octavian> Compilation exited abnormally with code 1 at Mon Jul 09
Octavian> 16:02:55 8<-------------------------->8
Octavian> Well, but ... Windows is not case sensitive, so saving
Octavian> the file in Counter.java or counter.java makes no
Octavian> difference. I don't see anything in the documentation
Octavian> about this issue.
Octavian> Thank you for any help.
Octavian> mp