Running a java application on a website [basic] [tutorial]

Discussion in 'Web Programming' started by draggin pure, May 7, 2009.

Running a java application on a website [basic] [tutorial]
  1. Unread #1 - May 7, 2009 at 4:33 AM
  2. draggin pure
    Joined:
    Apr 7, 2008
    Posts:
    1,429
    Referrals:
    0
    Sythe Gold:
    0

    draggin pure Guru
    Banned

    Running a java application on a website [basic] [tutorial]

    So basically you need everything a normal html document has.

    Then this is the basic layout...

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta http-equiv="Content-Language" content="en, English">
    <title>Test</title>
    </head>
    <body>
    </body>
    </html>
    Now we add the applet part in the body tags..
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta http-equiv="Content-Language" content="en, English">
    <title>Test</title>
    </head>
    <body>
    <div class="loginapplet_wrapper">
    <applet class="loginapplet" archive="Nameoffilehere.jar" code="loader(what runs the file).class" height="200" width="400">
    </applet>
    </div>
    </body>
    </html>
    Now basically name it Index.html or w/e you want.

    Run it, it should run your applet.

    It will be unsigned unless you get a applet signer.


    tada.... have fun :p
     
< Website Question | [PHP] Runescape Homeworld Signature >

Users viewing this thread
1 guest


 
 
Adblock breaks this site