Clear JRE cache remotely

Hi,

I have a mass deployment problem : I need to clear the JRE cache on several computers remotely (versions 1.3.1 and 1.5.0).

Does someone knows if I can invoke the clear action remotely without having to take the control of the computer desktop ?

Maybe by using an API with a distributed executable for example ?

Thanks.

Rgs.

[364 byte] By [armoreta] at [2007-11-27 10:54:19]
# 1

The cache? What do you mean? Are you wanting to invoke gc remotely?

SoulTech2012a at 2007-7-29 11:49:33 > top of Java-index,Desktop,Runtime Environment...
# 2

I mean the cache associated to the browser plugin that you can clear from the control panel, "java plugin 1.x.x" item (cache tab).

Brgs

armoreta at 2007-7-29 11:49:33 > top of Java-index,Desktop,Runtime Environment...
# 3

So let's say I have 100MB of cached data and your app clears my cache. Well now I have to re-download 100MB of **** (again) if i want to run my other app(s). i.e. clearing the cache sounds like a poor solution. The real question is WHY do you want to clear the cache? What's the real problem?

SoulTech2012a at 2007-7-29 11:49:33 > top of Java-index,Desktop,Runtime Environment...
# 4

The real problem is that, for an unknown reason, some applet upgrades don't work correctly unless clearing the JRE cache (that makes reloading the whole code that is spread into multiple jars, etc...).

As I don't have the possibility to investigate the real problem origin and I'm not sure at all to find out the solution, as the problem happens on more that 500 workstations (stations without any users behind), all I can do is to investigate how applicate the side around solution that I know is working for sure.

Please, -please-, don't ask why it doesn't work : just answer to the question ! (but related suggestions still welcomed of course)

Rgds.

armoreta at 2007-7-29 11:49:33 > top of Java-index,Desktop,Runtime Environment...
# 5

What is happening is browsers cache applets client-side, but if the server-side applet is changed, the browser will not download a new one. If the applet is removed from the browsers cache, it will be forced to download a new applet. However, it seems like the article below is helpful.

http://java.sun.com/products/plugin/1.3/docs/appletcaching.html

Long story short, in the web page HTML, use an EMBED or OBJECT tag and then a

<PARAM NAME="cache_option" VALUE="no">

will make sure the applet is downloaded every time the page is loaded. Also, it seems like using the line

<PARAM NAME="cache_option" VALUE="Plugin">

will cause the applet on the client to be automatically updated when the applet on the server is updated.

geffdea at 2007-7-29 11:49:33 > top of Java-index,Desktop,Runtime Environment...
# 6

Interesting suggestion, I will check if this can be applied in my case. Obviously the objective is not to reload the applet every time but only if one of its files is updated (can be any of its jars). Without any explicit directive, the latest cache option you describe is not supposed to be the default behaviour ?

armoreta at 2007-7-29 11:49:33 > top of Java-index,Desktop,Runtime Environment...
# 7

Unfortunately, the cache setting was already well declared so the problem remain and my side around solution is still the best one I have found... if I can remotely execute it !

armoreta at 2007-7-29 11:49:33 > top of Java-index,Desktop,Runtime Environment...