The moose likes Applets and the fly likes Clearing the applet cache through code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Clearing the applet cache through code" Watch "Clearing the applet cache through code" New topic

Clearing the applet cache through code

sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
Hi all

I am using an applet which will use a web application , but the problem is often jars will be changing , but the applet caches the old jars resulting in some class descrepancies for the end user

If the cache is removed manually from the sun java console , then it works fine . ofcourse caching will increase the performance of the applet but often leads to problems like this

Can any one let me know if there is some piece of code which can be written in the applet so that it updates when ever the jars on the server get updated ??
It is sorta covered in the JavaRanch Style Guide.
subject: Clearing the applet cache through code
Similar Threads
Applet Gui is not updating inside JSP pages
Cached audioclip
Java Profiling-MemoryLeakTesting using JRat
Applet > JNLP
Running Applet from DLL