Delete temporary Internet files for Java

In the Java control panel on windows, there is the setting of "temporary Internet File", in which all applet and webstart contents are cached For some users of our application, this cache does not work properly. They need to delete all files through the control panel before our webstart application is updated correctly

Ignoring the other implications of doing so, in any case, we can programmatically delete the temporary file cache when we update, preferably through Java without relying on any batch file or windows hacker quackery?

Solution

For web launch applications (such as the one you're talking about):

javaws -uninstall

You can also uninstall a specific web start application by providing the JNLP URL on the - unintall command line

When I encountered this problem, the root cause was that the web server mistakenly applied an incorrect expiration date to the jar file of Web start When I use the Apache httpd configuration to correct this problem, I no longer always update the web start application It's worth a try

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>