Results 1 to 3 of 3
  1. #1
    jwzumwalt is offline Member
    Join Date
    Nov 2007
    Posts
    2
    Rep Power
    0

    Default How to view applet from html page.

    I am a school teacher trying to have students run applets from a web page. The simple tutorials I have tried do not work. If I click on the jar file with IE browser it works fine.

    Thanks for the help! JZ

    An example of an applet is located at

    Directory Listing

    This is what I have tried but it does not work...

    <Html><Head><Title>Java Example</Title></Head>
    <Body>
    Below is an applet<br><br>
    <Applet Code="ohm-1d.class" width=600 Height=600>
    </Applet></Body></Html>
    Last edited by jwzumwalt; 11-23-2007 at 09:46 PM.

  2. #2
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    9

    Default

    Java Code:
    <Applet Code="ohm-1d.class"
            archive="ohm-1d.jar"
            width=600 Height=600>
    </Applet>
    See the first section, "Applets Packaged in JAR Files", in Running JAR-Packaged Software.

  3. #3
    jwzumwalt is offline Member
    Join Date
    Nov 2007
    Posts
    2
    Rep Power
    0

    Default

    Thank you for your quick reply...

    I used the following code and it does not work. As before, I can click on the jar file with a browser and it will work.

    <Html><Head><Title>Java Example</Title></Head>
    <Body>
    The applet is below<br>
    <Applet Code="ohm-1d.class"
    archive="ohm-1d.jar"
    width=600 Height=600>
    </Applet>
    </Body>
    </Html>

    The files can be viewed at Directory Listing v1.1
    Last edited by jwzumwalt; 11-24-2007 at 05:24 AM.

Similar Threads

  1. Applet - enter URL and view the page
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-10-2008, 03:38 PM
  2. Replies: 0
    Last Post: 03-10-2008, 03:36 PM
  3. Unable to view japanese in java applet
    By rogermakrm in forum Java Applets
    Replies: 5
    Last Post: 01-16-2008, 07:07 AM
  4. HTML page
    By bbq in forum New To Java
    Replies: 1
    Last Post: 07-05-2007, 04:46 AM
  5. Create a Applet in the page HTML
    By Daniel in forum Java Applets
    Replies: 2
    Last Post: 07-04-2007, 08:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •