Re: applets being cached?
yawnmoth wrote:
tim.yates@gmail.com wrote:
Try holding CTRL and clicking refresh...
That should clear the cache, and load the new version
It doesn't seem to do anything for Java, atleast. In fact, I just
deleted the *.class file and I'm still getting the "Hello world!"
message. From a non-existant *.class file, no less...
Browsers are notorious for caching applet classes.
The best (& only reliable) method I've found is to
tell the JVM to load the classes afresh. This can
be achieved by opening the Java console ....
Java Plug-in 1.5.0_01
Using JRE version 1.5.0_01 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Administrator
----------------------------------------------------
......
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
....and typing 'x' to clear the classloader cache.
Of course, you can remeber to do that every time you
reload the applet in the browser, or you can take either
of two other courses of action that completely avoid the
problem. I.E.
Develop and test applets in either
- The AppletViewer
- A Frame
HTH
Andrew T.