Is there a quick way to delete a file from a Jar / war without having to extract the jar and recreate it?

zip -d file.jar unwanted_file.txt

jar is just a zip file after all. Definitely much faster than uncompressing/recompressing.

Leave a Comment