0

I'd like to know how to clear Java and Flash cache in Ubuntu 16.04 using CLI.

| improve this question | | | | |
0

You can simply make a clean install of Java.

sudo update-alternatives --remove "java" "<javaPath>"
sudo update-alternatives --remove "javac" "<javacPath>"
sudo update-alternatives --remove "javaws" "<javawsPath>"
sudo rm -r /usr/lib/jvm/jdk*
sudo apt-get remove --auto-remove openjdk*
sudo apt-get purge --auto-remove openjdk*
sudo apt-get update
sudo apt-get install default-jre
sudo apt-get install default-jdk
| improve this answer | | | | |
  • 2
    I don't want to reinstall Java every time I want to clear the cache. – Rubens_Zimbres Mar 12 '19 at 23:55
  • @Rubens_Zimbres can you provide an example of what do you refer to as Java 'cache'? – Sarriman Mar 13 '19 at 0:08
  • 1
    Need something more than javaws -clearache ? – Sarriman Mar 13 '19 at 1:18
  • 3
    The right command is javaws -clearcache – Rubens_Zimbres Mar 13 '19 at 1:34
  • 1
    @Rubens_Zimbres If you found the solution, you should post a separate answer. askubuntu.com/help/self-answer – Melebius Mar 14 '19 at 8:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.