2014-09-12 135 views
3

我想知道如何使用Java代碼或CMD行代碼清除Java高速緩存。清除Java高速緩存

這應該在Windows 7以上的任何地方使用Microsoft Windows計算機完成。

這應該在多臺計算機上完成,因此文件路徑將有所不同。

應用程序使用Javaw作爲它啓動的默認應用程序(不要與Javaws或Webstart混淆 - 我已經有了如何清除Javaws緩存的代碼)。所以我需要知道如何清除Javaw緩存。

感謝 烏爾裏希

回答

0

可以使用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. 
+0

他問怎麼通過java代碼或命令行來做到這一點 – Andremoniy 2014-09-12 11:24:03

+1

@Andremoniy我也加了這部分 – 2014-09-12 11:32:51

+0

嗨,謝謝,但正如我所提到的,我不需要爲Javaws做,而是爲Javaw做。 – user2138639 2014-09-12 11:45:08

0

這可以通過以下線路進行歸檔:javaws -Xclearcache -silent -Xnosplash