title: How do I update one file in a jar without repackaging the whole jar?
body: <p>I have a .jar file called myfile.jar. Inside this jar file is a folder called images. Inside this folder called images, I have an image called hi.png. I want to update that image with a new version of that image, which is also called hi.png. I do not want to extract all of the files from the single jar file and then repackage them, I just want to update the image. So, I go to command line as usual, type a few lines of code, and then I do this command:</p>
  
  <pre><code>jar uf myfile.jar -C images hi.png
  </code></pre>
  
  <p>What I hoped to do with that command was to replace the old hi.png with the new hi.png. But, it gives me this error:</p>
  
  <pre><code>images\hi.png : no such file or directory
  </code></pre>
  
  <p>What do I do to fix this? </p>
  
  <p>Extra info: I can not use something like WinRAR, I have to do this with command line. </p>