Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   Getting information about Jar file from Applet (http://www.velocityreviews.com/forums/t536813-getting-information-about-jar-file-from-applet.html)

erictetz@gmail.com 09-12-2007 07:54 PM

Getting information about Jar file from Applet
 
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


Roedy Green 09-13-2007 12:24 AM

Re: Getting information about Jar file from Applet
 
On Wed, 12 Sep 2007 19:54:51 -0000, erictetz@gmail.com 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


All times are GMT. The time now is 08:22 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57