Updating .class file in jar

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

    High-level steps:

    Setup the environment
    Use JD-GUI to peek into the JAR file
    Unpack the JAR file
    Modify the .class file with a Java Bytecode Editor
    Update the modified classes into existing JAR file
    Verify it with JD-GUI
    

    Refer below link for detailed steps and methods to do it,

    https://www.talksinfo.com/how-to-edit-class-file-from-a-jar/

提交回复
热议问题