如何使用 JD-GUI 从反编译的 JAR 重新创建项目链接?

发布于 2024-11-16 18:05:21 字数 178 浏览 6 评论 0原文

我有一个旧版 .JAR 文件。我可以用 JD-GUI 反编译它,但这给了我一组类文件。我试图跟踪代码,但各个类之间的联系有限。

我可以手动跟踪代码,但是有没有办法“重新链接”或创建项目,以便我可以更轻松地导航。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

给不了的爱 2024-11-23 18:05:21

如果我理解你的问题,你需要类似于 eclipse Goto 引用和声明等的选项。

  • 从中打开 JD-GUI 和 JAR 文件
  • 选择“保存所有源”选项,它将创建带有源的 zip 文件
  • 现在提取 zip进入文件夹
  • 打开 eclipse 并创建 java 项目。
  • 复制提取的内容并将其粘贴到eclipse中的src文件夹中

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
明月夜 2024-11-23 18:05:21

为了更有效地工作,您可以执行以下操作。

  • 打开Eclipse IDE,按CTRL + N,选择选项Java Project。

输入图片这里的描述

  • 取消勾选默认位置选项,搜索反编译后的项目文件夹

在此处输入图片描述

  • 选择项目,勾选默认选项 再次完成向导。

输入图片此处描述

通过执行此步骤,您就可以开始工作了。

To work more effective you can do the following.

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

enter image description here

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

enter image description here

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

enter image description here

With this steps you will ready to work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文