Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

clear the java cache from the command line in linux

The title says it all. I have to clear the java cache (to load a fresh version of an applet) from the command line, and the command line only, without any GUI.

I tried something found here https://stackoverflow.com/a/25807154/4142984

javaws -clearcache

But it opens a GUI that leads me to a window for the Java Control Panel.

The window (seen remotely on a windows machine) is non-resizable, and the interesting buttons from "Temporary Internet Files" are not in the visible part of the window.

like image 808
Gyro Gearloose Avatar asked Jun 26 '16 13:06

Gyro Gearloose


People also ask

How do I clear Java cache in terminal?

Open “Control Panel“, then select “Java“. From the “General” tab, select the “Settings…” button. Select “Delete Files…“. Ensure the “Cached Applications and Applets” option is selected.

How do I clear the command line cache?

Type CMD in the Search bar > right-click on Command Prompt and select Run as Administrator option. On Command Prompt window, type ipconfig /flushdns and press the Enter key. Once the Command is processed, you will see 'Successfully flushed the DNS Resolver Cache' message.


1 Answers

Sorry, I thought you were talking about Java memory cache...

I think you got downvoted because your question is out of topic, and unclear. From this "GUI", you must see where your cache is stored.

Mine is here: /home/ju/.cache/icedtea-web/cache ; then I must do

rm -rf /home/ju/.cache/icedtea-web/cache/*

to remove its content.

like image 87
J. Chomel Avatar answered Oct 26 '22 21:10

J. Chomel