简体   繁体   中英

How re recreate project linkages from decompiled JAR using JD-GUI?

I have a legacy .JAR file. I am able to de-compile it with JD-GUI, but this gives me a set of class files. I am trying to follow code through but there is limited linkage between the various classes.

I can follow the code manually, but is there a way to "re link" or create a project, so that I can navigate more easily.

JD-GUI does this partly when it underlines certain classes, but only takes me to the class. I would like to go direct to a declaration or see all usages.

If I understand your question, you want options similar to eclipse Goto references and declarations etc.

  • Open JD-GUI and JAR file from it
  • Select Save All sources option it will create zip file with source
  • Now extract the zip into a folder
  • Open eclipse and create java project.
  • Copy the extracted content and paste it in src folder in eclipse

To work more effective you can do the following.

  • Open Eclipse IDE, press CTRL + N, choose the option Java Project.

在此处输入图片说明

  • Unchecked the option Default Location , search the project folder decompiled

在此处输入图片说明

  • Choose the project, checked the option Default Option again and finish the Wizard.

在此处输入图片说明

With this steps you will ready to work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM