java - 清除 Java 缓存

标签 java caching

我想知道如何使用 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/

相关文章:

java - 在java中重写equals和hashcode方法?

google-chrome - 谷歌浏览器中的最大磁盘缓存大小

sql-server - SQL Server 中的启动或预热缓存

c# - IMemoryCache 保证唯一的新 key .NET-Core

ruby-on-rails - 如何在 Rails 中动态设置 perform_caching

java - 将哈希码作为一个简单的增量可以吗?

Java - 从接受泛型的类继承?

java - 图像翻转不起作用

java - 无法在JSP中获取上传图像文件的完整路径

asp.net - Cache.Insert ("") 绝对过期时间为 UTC 偏移量