Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

decompiling

I opened a jar file in jd-gui but when I try to save the all resources it stops working. I don't know where to look for the logs of jd-gui.

How can I save all the decompiled source files?

like image 882
Manoj Avatar asked Jun 22 '11 14:06

Manoj


3 Answers

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.

like image 105
Siwei Avatar answered Nov 16 '22 21:11

Siwei


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.

like image 1
Emmanuel Dupuy Avatar answered Nov 16 '22 19:11

Emmanuel Dupuy


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

like image 1
Val Martinez Avatar answered Nov 16 '22 19:11

Val Martinez