jar edit and re-compile in simple way

前端 未结 3 2010
滥情空心
滥情空心 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.
    0 讨论(0)
  • 2021-02-09 00:47

    Save the source files by clicking save menu item under file. It will generate src.ip file.Then you can do whatever you want.

    0 讨论(0)
  • 2021-02-09 00:53

    On your first question JD-GUI is just a viewer you need to use dex2jar to retrieve the JAR file; decompile and save the classes you need to change; import JAR and JAVA files in your Android Studio; modify; recompile and repackaged.

    0 讨论(0)
提交回复
热议问题