jar edit and re-compile in simple way

前端 未结 3 2009
滥情空心
滥情空心 2021-02-09 00:20

I have a jar file called ScreenCapture.jar

I use http://jd.benow.ca/ what is in there. I have even downloaded jd-gui

This is what it shows me

3条回答
  •  礼貌的吻别
    2021-02-09 00:32

    follow these steps:

    1. Create an eclipse project
    2. add the jar as a dependency to that project
    3. Create a new class named ScreenCapture.java in the package screencapture.
    4. copy the whole source from your JD too view the screenshot of which u attached here.
    5. change the code which u want.
    6. build the project
    7. check the bin folder of you eclipse project . this will have the new compiled .class file.
    8. open the jar in winrar and copy the .class file from bin folder into your jar.
    9. and you are done.

提交回复
热议问题