ClassCastException error

Hello, when I`m trying to run the example Xlets of Interactive TV Web (Steven Morrison) FirstXletExample.java and MySecondXlet.java in XletView and OpenMHP I receive the same error:

initxlet: java.lang.ClassCastException: FirstXletExample

I have compiled these two archives in Eclipse. I have read this error is to

"indicate that the code has attempted to cast an object to a subclass of which it is not an instance" from java Sun documentation:

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/ClassCastException.html

I understand the example shown here but no in these two files. What can be do the reason of this error?

Thanks very much!!

[685 byte] By [Jorge07a] at [2007-11-26 23:51:23]
# 1
I`m going to answer to my question :-)The problem was that the .class file was in the same directory than the xletview.jar file.Bye!
Jorge07a at 2007-7-11 15:30:02 > top of Java-index,Java Mobility Forums,Consumer and Commerce...