How to delete a specific File/Folder from a jar pragmatically in java
问题 How to delete a specific File/Folder from a jar pragmatically in java. I have a jar ABC.jar contains files, folder and another jars say child.jar. under child.jar I want to delete a specific file. How can I do? so that my ABC.jar structure remains same. Any help will be appreciate. Thanks in Advance. 回答1: As answered by @icza we have to iterate through original jar file and deleting the entry we don't want. Here is the java code you can refer. public static void main(String[] args) throws