JAR in <applet> tag

Discussion in 'Java' started by Timo Nentwig, Mar 30, 2005.

  1. Timo Nentwig

    Timo Nentwig Guest

    Hi!

    Why doesn't this work:

    <applet archive="foo.jar" code="foo.Bar" />

    It doesn't look in the JAR for the class but in the file system...
    Timo Nentwig, Mar 30, 2005
    #1
    1. Advertising

  2. Timo Nentwig

    Edwin Martin Guest

    Timo Nentwig wrote:

    > <applet archive="foo.jar" code="foo.Bar" />
    >
    > It doesn't look in the JAR for the class but in the file system...


    Code must point to a .class file.

    So it should be something like:
    <applet archive="foo.jar" code="foo.Bar.class" />

    If that does't work, try HTML-notation.

    Edwin Martin

    --
    http://www.bitstorm.org/edwin/en/
    Edwin Martin, Mar 30, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Arnold Peters
    Replies:
    0
    Views:
    567
    Arnold Peters
    Jan 5, 2005
  2. muttley
    Replies:
    0
    Views:
    2,718
    muttley
    Oct 20, 2005
  3. shruds
    Replies:
    1
    Views:
    788
    John C. Bollinger
    Jan 27, 2006
  4. cyberco
    Replies:
    4
    Views:
    3,753
    Roedy Green
    Feb 14, 2006
  5. Arnold Peters
    Replies:
    0
    Views:
    657
    Arnold Peters
    Jan 5, 2005
Loading...

Share This Page