4 Replies Latest reply: Jan 25, 2010 7:52 PM by 843789 RSS

    HTML File won't load my JApplet

      Hello all, I have an html file, listed here, in the same directory as the class it's trying to open, ClassFile.class, which is a JApplet and works just fine when I load it on AppletViewer using Eclipse.

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      <html xmlns="http://www.w3.org/1999/xhtml">

      This is my page<br>
      Below you see an applechgfcght<br>
      <Applet Code="ClassFile" width=200 Height=100>

      However, when I open this html page, I just get a gigantic X. What is wrong here? Is my code string supposed to include the full system directory of the classfile? I tried it and it didn't work - if the file works in applet viewer, why won't it load on a page?

      Anyway, thanks in advance!