• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet notinited

 
Sacha Crompton
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to make a java applet but I keep getting "Applet notinited", the java console shows this:
java.lang.ClassCastException

at sun.applet.AppletPanel.createApplet(AppletPanel.java:566)

at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1775)

at sun.applet.AppletPanel.runLoader(AppletPanel.java:495)

at sun.applet.AppletPanel.run(AppletPanel.java:292)

at java.lang.Thread.run(Thread.java:536)

What could be causing this problem?

Thanks
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

Most likely: the class named in your HTML file doesn't actually extend java.applet.Applet, as it must.
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SachaC:

Your display name does not conform to the JavaRanch Naming Policy. Please change it here to somthing that is standard (we are looking for two names, preferably your real name; the last name must be more than an initial; no obvously fake names/celebrity names [unless you happen to share a name with a celebrity]).

Thanks!
[ November 24, 2004: Message edited by: Joel McNary ]
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Applets forum...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic