What does the $1 in a class filename mean ?

Hi,

I am new to Java. I have created an applet called TicketbookEmailDecoder.class that works with both the appletviewer and via a htm page using:

<applet code="TicketbookEmailDecoder" width=480 height=360>

</applet>

So far so good. Now, when I deploy the applet in another folder on my local machine I get

java.lang.NoClassDefFoundError: TicketbookEmailDecoder$1

If I copy the file TicketbookEmailDecoder$1.class to the new folder the applet loads properly.

So, what is the $1 file and why do I need it ? I cant find any explanation of these files in my manual or on the web.

Thanks,

Murray

[665 byte] By [murraha] at [2007-11-26 15:05:29]
# 1
It's an anonymous inner class.You defined a class within a class, but didn't give it an explicit name.regards,Owen
omcgoverna at 2007-7-8 8:55:18 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
Thanks Owen,I will check it out.Cheers,Murray
murraha at 2007-7-8 8:55:18 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...