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

    HTML File won't load my JApplet

    843789
      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"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <Head>
      <Title>Titlestuff</Title>
      </Head>

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

      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!