Clearing classloader cache



Greetings!

In the Java console, there is an option to flush the classloader cache ('x'
key). What I'd like is a way to trigger this flush either in Java or
through an external program, but in a scriptable way - that's why the
console is out. Any idea how to do that?

The problem I'm trying to avoid is stale instances of an applet I'm
developing. I regularly forget to flush the cache after changes and others
might not even know there were changes, so compiling these applets and then
flushing the cache as part of installation would be my approach to fix this
annoyance, but I don't know how. Another approach would be to actively
force the new classes into the cache, which would be even better, since it
doesn't affect the whole cache.

thanks for your help

Uli

--
Sator Laser GmbH
Geschäftsführer: Ronald Boers, Amtsgericht Hamburg HR B62 932

.



Relevant Pages

  • flush cache range proposal (was Re: ide errors in 7-rc1-mm1 and later)
    ... If bit 0 is set to one, the mandatory FLUSH CACHE and FLUSH CACHE EXT ... commands support the RANGE bit, and user-supplied LBA ... and sector count specifying the limits of the cache flush. ...
    (Linux-Kernel)
  • Re: Implementing Lisp in C?
    ... > to explicitly flush the data cache and/or the instruction cache ... interface to flush a specified range of the icache. ... rub is that if you execute this instruction on a V7, ...
    (comp.lang.lisp)
  • Re: Clearing Java Cache
    ... The sole purpose for me trying to do this is that the applet does not ... all browsers and then reopen a fresh browser to view the applet OR open ... the java console and then clear the cache and then refresh the page. ...
    (comp.lang.java.gui)
  • Re: fuse, get_user_pages, flush_anon_page, aliasing caches and all that again
    ... flush the cache as seen by A PARTICULAR virtual mapping. ... It's the aliasing between the _1_ valid user mapping and the kernel's ... the kernel for a cpu load/store. ...
    (Linux-Kernel)
  • Re: FlushFileBuffers in non-privileged user mode
    ... H> that need to flush file cache before the software end. ... In Windows 2000 and XP user mode, if the working device that I am ... they have data corruption problem even though OS ...
    (microsoft.public.win32.programmer.kernel)