rename your file from "counter.java" (with a lowercase c)
to "Counter.java" (with an uppercase C).  Note that you might
need to "rename counter.java x.java" and then
"rename x.java Counter.java" so rename doesn't complain about
trying to rename a file over itself.

Although win32's command line tools like copy, rename, etc. aren't
case sensitive... javac, java, jikes, and other programs are.

Troy

-----Original Message-----
From: Michael Powe [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 5:07 PM
To: [EMAIL PROTECTED]
Subject: Compilation problems on Win2k


Hello,

I am just learning to program in java.  I have the JDE set up on a
Win2k Pro system. 

GNU Emacs 20.7.1 (i386-*-nt5.0.2195) of Tue Jun 13 2000 on buffy

Everything seems to work fine, except when I compile, I get this
error:

8<-------------------------->8
cd c:/Program Files/emacs/src/
C:\jdk1.3.1\bin\javac  counter.java
counter.java:12: class Counter is public, should be declared in a file
named Counter.java
public class Counter 
       ^
1 error

Compilation exited abnormally with code 1 at Mon Jul 09 16:02:55
8<-------------------------->8

Well, but ... Windows is not case sensitive, so saving the file in
Counter.java or counter.java makes no difference.  I don't see
anything in the documentation about this issue.

Thank you for any help.

mp


Reply via email to