File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes caching class-files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "caching class-files" Watch "caching class-files" New topic

caching class-files

martin chile

Joined: Jun 24, 2002
Posts: 21
how can i cache class-files (main-class and others), so that the applet is the same for every page on my website. do i just have to open the same class-files in the same directory or are there other ways.
i know how to cache jar-files but dont want to use this before i dont know how to cache class-files.
thanks for your help!
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1873
hi martin
As far as I know, the class files are cached by the Java Plug in if you are using one.
If you go to the Java Console you will find option to clear the cache which will remove the class files from the cache and reload new when requested next.
Peter Gragert
Ranch Hand

Joined: Jan 16, 2001
Posts: 424
What I know agrees with what is just sad.
But the 'owner' may provide a *.html file (containing an applet)
which forbids caching ( a Meta ....)?!
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1873
hi Peter,
HTML META tag for Caching doesn't affect applet caching as applet classes are cached by the JRE in the browser and not by the browser.
Correct me if I am wrong.
I agree. Here's the link:
subject: caching class-files
It's not a secret anymore!