Re-compile a Java Class from Jar

后端 未结 6 1347
长情又很酷
长情又很酷 2020-12-16 05:08

I have an executable jar that has one class file with a wrong value. I requested that file from the author and corrected the value.

Now I want to compile it and add

6条回答
  •  情深已故
    2020-12-16 05:35

    Once you've compiled the new file (such as in Mr. Will's answer), you can add the new file to the jar using:

    jar uf C:\folder\where\jar\is\the_jar_file.jar file.class
    

提交回复
热议问题