Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.ClassCastException: while executing applet

 
Khushwinder Chahal
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to executing an applet from my web application through jar file.
The code is like this :

applet code="org.jsresources.apps.chat.Chat" archive="voicechat.jar"


Its working fine except one thing.
On jsp page while executing its also through the following err in the java console of the browser(both in IE and Firefox).

The err is :
java.lang.ClassCastException: org.jsresources.apps.chat.Chat
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Though the application is running i am still getting this err..
Anybody have an idea please help me.
I need it urgently.

Thanks and Regards.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the Chat class implement the java.applet.Applet interface?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic