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:
unzip the target jar file.
remove unnecessary folder
zip the remaining class files into a new-small jar file.
download the
jd-cli
project from here: https://github.com/kwart/jd-cli/releases/tag/jd-cli-1.2.0use
jd-cli
to de-compile the jar , and with the log option, e.g.jd-cli target.jar -od jar_result -g ALL
check the output log and find out which
block.class
file block the de-compile proccess. if there is, then remove it from thetarget.jar
and then re-run thejd-cli
again. You can manually copy/paste theblock.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-)
精彩评论