我想知道如何使用 Java 代码或 CMD 行代码清除 Java 缓存。
这应该在 Windows 7 以上的任何 Microsoft Windows 机器上完成。
这应该在多台计算机上完成,因此文件路径会不同。
该应用程序使用 Javaw 作为它启动时使用的默认应用程序(不要与 Javaws 或 Webstart 混淆——我已经有了如何清除 Javaws 缓存的代码)。所以我需要知道如何清除 Javaw 缓存。
最佳答案
您可以使用 Java Control Panel 来做到这一点.
How do I clear the Java cache?
How can do it in command line?
这将是清除缓存的命令
javaws -clearcache // Remove all non-installed applications from the cache.
和
javaws -uninstall // Remove all applications from the cache.
关于java - 清除 Java 缓存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25807055/