[5942] in java-interest
Re:Help_with_compiler_error
daemon@ATHENA.MIT.EDU (Vitor Carreira)
Tue Mar 5 19:46:03 1996
Date: Wed, 6 Mar 1996 01:07:14 +0100
From: Vitor Carreira <vmc@lila.dei.uc.pt>
To: java-interest@java.sun.com
>
> I guess I'm a little new to Java. Anyway, when I compile the example program from "60 minute guide to Java" the following error pops up:
>
> docfooter.java:6: Warning: Public class DocFooter must be defined in a file called "DocFooter.java".
> public class DocFooter extends Applet{
> ^
> 1 error
>
Hi Brian,
you must save your class to a file called DocFooter.java
When you declare a class public you must save it to a file with the name
of the class (case sensitive).
Ex: public class Foo {
.......
}
must be save to a file called Foo.java and not foo.java
I hope this will help you.
---------------------
Vitor M. J. Carreira
vmc@lila.dei.uc.pt
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com