[4488] in java-interest
Public Class Animator Must be Defined? (HELP)
daemon@ATHENA.MIT.EDU (Brian Deagan)
Tue Jan 2 21:18:33 1996
Date: Mon, 02 Jan 1995 19:35:03 -0500
From: Brian Deagan <deagan@lmg.com>
To: java-interest@java.sun.com
Hi all,
I am relatively new to the list and I feel kind of bad about
throwing out a question so quick. I usually like to lurk around
for sometime before I jump in the discussion. However, I am
desperate for an answer and I will be indebted to anyone who
helps me out. Here is the problem:
I am trying to get the Animator applet from Sun to work.
Actually, right now I am just trying to compile it. When I
first pulled the source down off the Net and tried to compile it
I had eight errors. Now, however, I am only down to one. And I
have been stuck on this one error for the past 4 hours.
My error message that I get says:
"c:\website\htdocs\java\animator.java :51: Warning: Public class
Animator must be defined in a file called "Animator.java".
Public class Animator extends java.applet.Applet implements
Runnable"
Now, I would imagine that my problem lies at the end of this
error where it states "Public class Animator extends Applet
implements Runnable." Here is what the begining of my source
code looks like....
***********************************************************
public class Animator extends java.applet.Applet implements
Runnable {
/**
* The images, in display order (Images).
*/
Vector images = null;
/**
*************************************************************
Is this where I have to define the public class Animator? If so
what is the line that I need to enter in? Also, does the
"java.applet.Applet" section have to correlate with a certain
directory structure on my machine. I have noticed that
"java.applet.Applet" is used in almost every script and the only
thing that is different is the name of the public class..in this
case it is "Animator."
Any information that anyone could provide me with why this is
not working will be greatly appreciated.
Take care,
Brian Deagan
Lynk, Ltd.
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com