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. Advertisements

  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. Advertisements

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. Sajjad Lateef
    Replies:
    3
    Views:
    3,612
    frére Ane
    Jun 19, 2012
  2. Arnold Peters
    Replies:
    0
    Views:
    889
    Arnold Peters
    Jan 5, 2005
  3. muttley
    Replies:
    0
    Views:
    3,198
    muttley
    Oct 20, 2005
  4. shruds
    Replies:
    1
    Views:
    1,270
    John C. Bollinger
    Jan 27, 2006
  5. cyberco
    Replies:
    4
    Views:
    4,234
    Roedy Green
    Feb 14, 2006
  6. Arnold Peters
    Replies:
    0
    Views:
    917
    Arnold Peters
    Jan 5, 2005
  7. Antti Järvinen
    Replies:
    5
    Views:
    925
    Mark Thornton
    Feb 12, 2008
  8. Sanny
    Replies:
    4
    Views:
    598
    Arne Vajhøj
    Aug 20, 2012
Loading...