Updating .class file in jar

后端 未结 11 875
南笙
南笙 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:11

    1) you can extract the file into a folder called

    jarname.jar

    and then replace the file in the folder, handy if you are updating the class a lot while debugging

    2) you can extract the jar replace the file then the jar it up again

    3) Open the jar with 7 zip and drag and drop your new class in to copy over the old one

提交回复
热议问题