title: How do I clear a specific file in the Java cache?
body: <p>I would like to remove a specific cached jar file from a Java program.  Java cache behaves weirdly sometimes, and keeps loading an old jar even if a new one should be used. </p>
  
  <p>The "Java Control Panel" has a <a href="http://pscode.org/player.jnlp" rel="nofollow noreferrer">"Java Cache Viewer"</a> feature that allows us to see cached jar files.  </p>
  
  <p><img src="https://i.stack.imgur.com/VLf5G.png" alt="The Java Cache Viewer"></p>
  
  <p>I was wondering if there was a way to detect a cached jar file but directly from a java program, and then remove that file.  Is there an API allowing that?</p>