Getting information about Jar file from Applet

Discussion in 'Java' started by erictetz@gmail.com, Sep 12, 2007.

  1. Guest

    Is it possible to read information about the JAR file my applet was
    loaded from?

    Specifically, I would like to be able to read the timestamp of the JAR
    file my applet was loaded from.

    Cheers,
    Eric
     
    , Sep 12, 2007
    #1
    1. Advertising

  2. Roedy Green Guest

    On Wed, 12 Sep 2007 19:54:51 -0000, wrote, quoted
    or indirectly quoted someone who said :

    >Is it possible to read information about the JAR file my applet was
    >loaded from?
    >
    >Specifically, I would like to be able to read the timestamp of the JAR
    >file my applet was loaded from.


    You can use Applet.getCodeBase. In a pinch, just pass the jar url as
    a parameter, or timestamp the source code.
    --
    Roedy Green Canadian Mind Products
    The Java Glossary
    http://mindprod.com
     
    Roedy Green, Sep 13, 2007
    #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:
    587
    Arnold Peters
    Jan 5, 2005
  2. Jimmy Halim
    Replies:
    0
    Views:
    366
    Jimmy Halim
    Apr 4, 2005
  3. muttley
    Replies:
    0
    Views:
    2,731
    muttley
    Oct 20, 2005
  4. cyberco
    Replies:
    4
    Views:
    3,773
    Roedy Green
    Feb 14, 2006
  5. Antti Järvinen
    Replies:
    5
    Views:
    667
    Mark Thornton
    Feb 12, 2008
Loading...

Share This Page