9

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.

Community
  • 1
  • 1
Gyro Gearloose
  • 1,056
  • 1
  • 9
  • 26

2 Answers2

6

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.

J. Chomel
  • 8,193
  • 15
  • 41
  • 69
2

There's the option -silent in javaws. According to documentation, it prevents UI for importing (installing) applications to the cache. But who knows, maybe it has effect on removing them too.

Andrew Lygin
  • 6,077
  • 1
  • 32
  • 37
  • Thank you, but at least on the system where I happen to be, it simply opens the GUI. – Gyro Gearloose Jun 26 '16 at 14:34
  • 2
    Actually, java applet cache is just a bunch of files in a special place. Deleting them will have the same effect as javaws -uninstall. These files are usually placed in the user's home directory. Try look in /home/userid/.java/deployment/cache. – Andrew Lygin Jun 26 '16 at 14:46