Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clear Java Cache

Tags:

java

caching

I want to know how you can clear your Java Cache using Java Code or CMD Line code.

This should be done on a Microsoft Windows Machine anywhere from Windows 7 up.

This should be done on multiple computers so the file paths will be different.

The application uses Javaw as it's default application that it launches with (Not to be confused with Javaws or Webstart - I already have code how to clear Javaws cache). So I will need to know how to clear Javaw cache.

like image 790
user2138639 Avatar asked Nov 22 '22 12:11

user2138639


1 Answers

You can do it using Java Control Panel.

How do I clear the Java cache?

How can do it in command line?

This will be the command to clear cache

javaws -clearcache // Remove all non-installed applications from the cache.

And

javaws -uninstall // Remove all applications from the cache.
like image 115
Ruchira Gayan Ranaweera Avatar answered Jan 11 '23 10:01

Ruchira Gayan Ranaweera