Updating .class file in jar

后端 未结 11 883
南笙
南笙 2020-11-27 05:52

I want to update a .class file in a jar with a new one. What is the easiest way to do it, especially in the Eclipse IDE?

11条回答
  •  余生分开走
    2020-11-27 06:22

    1. Use jar -xvf to extract the files to a directory.
    2. Make your changes and replace the classes.
    3. Use jar -cvf to create a new jar file.

提交回复
热议问题