Loading an applet


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Loading an applet

  1. #1
    Chloe Guest

    Loading an applet


    I'm trying to run an applet in IE5, the . class and .html are in the same
    place, but it doesnt work...
    here is the code :
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    <TITLE>
    HTML Test Page
    </TITLE>
    </HEAD>
    <BODY>
    <APPLET CODE="TestNavigateur.class" CODEBASE = "classes" WIDTH=618 HEIGHT=429>
    ...salut

    </APPLET>
    </BODY>
    </HTML>


  2. #2
    Kim Fowler Guest

    Re: Loading an applet

    Hi
    I am a little confused by your message, you say that the HTML and
    class are in the same place, do you mean in the same directory? If so
    then your APPLET tag is wrong. The CODEBASE attribute is a relative
    directory to the HTML location in order to locate the java classes

    If your HTML is in a directory called "c:\Fred" then the APPLET tag
    you supplied:

    <APPLET CODE="TestNavigateur.class" CODEBASE = "classes" WIDTH=618
    HEIGHT=429>

    will look for the applet code in a sub directory called "classes",
    i.e. it is looking for "c:\Fred\classes\TestNavigateur.class"

    If the class an dHTML are in the same directory then change your Tag
    to read

    <APPLET CODE="TestNavigateur.class" WIDTH=618 HEIGHT=429>

    this will look for the applet code "c:\Fred\TestNavigateur.class"

    Otherwise check out things like the case sensitivity of the class name

    HTH
    --
    Kim

    On 28 Sep 2000 01:35:03 -0700, "Chloe" <chloe.spire@caramail.com> did
    scribble:

    >
    >I'm trying to run an applet in IE5, the . class and .html are in the same
    >place, but it doesnt work...
    >here is the code :
    ><HTML>
    ><HEAD>
    ><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    ><TITLE>
    >HTML Test Page
    ></TITLE>
    ></HEAD>
    ><BODY>
    ><APPLET CODE="TestNavigateur.class" CODEBASE = "classes" WIDTH=618 HEIGHT=429>
    >..salut
    >
    ></APPLET>
    ></BODY>
    ></HTML>
    >



    --
    Kim

    Kim Fowler

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center