Search code examples
jarjavamanifest.mf

jar -uf is deleting the file inside the jar


I am using jar -uf to update my MANIFEST.MF file like this:

a. jar xf jarfile.jar META-INF\MANIFEST.MF

b. edit the file

c. jar uf jarfile.jar META-INF\MANIFEST.MF

But the 'uf' command is removing MANIFEST.MF from within my jar. What is the right way to change a file inside a jar (windows 7, jdk 1.6)?


Solution

  • You can always use winrar (or any equivalent) to open the jar, and drag/drop the files. worked for me.