Removing Java "Temporary Internet Files"

The Java control panel in Windows has settings for "temporary Internet files" in which all applets and webstart materials are cached. For some users of our application, this caching does not work correctly, and they need to delete all files through the control panel before our webstart application will self-recover.

Looking back at the other consequences of this, is there anyway we can programmatically delete the temporary cache file when updating, preferably through Java, and not resort to any batch files or Windows hackers?

+3
source share
1 answer

For a web launch application (e.g. you say):

javaws -uninstall

You can also uninstall a specific Web Start application by specifying the JNLP URL on the command line -unintall.

When I ran into this problem, the main reason was the web server that was incorrectly applying the invalid expiration date for JAR Web Start files. When I fixed this problem with my Apache HTTPD configuration, I stopped using the Web Start application not always. It is worth checking out.

+7
source

Source: https://habr.com/ru/post/1708987/


All Articles