开发者

jd-gui stops working when I try to save all resources

开发者 https://www.devze.com 2023-03-14 21:09 出处:网络
I opened a jar file in jd-gui but when I try to save the all resources it stops working. I d开发者_JAVA百科on\'t know where to look for the logs of jd-gui.

I opened a jar file in jd-gui but when I try to save the all resources it stops working. I d开发者_JAVA百科on't know where to look for the logs of jd-gui.

How can I save all the decompiled source files?


I met the same problem, and resoled it as below:

  1. unzip the target jar file.

  2. remove unnecessary folder

  3. zip the remaining class files into a new-small jar file.

  4. download the jd-cli project from here: https://github.com/kwart/jd-cli/releases/tag/jd-cli-1.2.0

  5. use jd-cli to de-compile the jar , and with the log option, e.g.

    jd-cli target.jar -od jar_result -g ALL

  6. check the output log and find out which block.class file block the de-compile proccess. if there is, then remove it from the target.jar and then re-run the jd-cli again. You can manually copy/paste the block.class source code from jd-gui.


Open "jd-gui.cfg" with a text editor. "LastUri", in section "Decompilation", contains the name of the CLASS file causing the crash. A workaround is to open the JAR file and remove or change extension of this CLASS file.

Regards.


It seems a bug. I solved it simply trying to export sources to other folder ($home -using debian-)

0

精彩评论

暂无评论...
验证码 换一张
取 消