Closed spaceone closed 5 years ago
Are you sure the classfile is valid? That error will occur if you try to parse an invalid classfile.
A good way to test it is to run the disassembler on the jar. That should tell you if there are any invalid classfiles in there and which ones.
I think so, as the java applet is normally running. I am no java expert. You can test it yourself just download the jar file.
The error might happen because the java file is obfuscated(?). When i decompile it with another decompiler it creates invalid variables:
95 public void actionPerformed(ActionEvent paramActionEvent)
96 {
97 if ((paramActionEvent = paramActionEvent.getActionCommand()).equals("samegame"))
It assigns a string to the paramActionEvent variable which is type ActionEvent.
Did you try disassembling it like I suggested?
Unfortunately, I won't be able to test it myself until next week as I am on vacation.
Ah yes, ofc I dissassembled it and that just works fine! Happy holidays ! :)
@spaceone I would not trust other decompilers. For example fernflower can very easily get exploited and produce such invalid code.
@Janmm14 I don't understand? I didn't use another decompiler than the one which is part of Krakatau.
@spaceone you posted code of decompilation with "another decompiler".
@Janmm14 oh yes, but this was from http://javadecompilers.com/
@spaceone and which one did you choose?
I just tried it and it decompiled without error. Are you sure you are using the latest version of Krakatau?
I used the latest git checkout from that day. I would be okay with closing this issue as I solved my problem.
Hi, the decompiler crashes for my file: Executed
Krakatau/decompile.py qmine-o.jar
:The following .jar file is used: www.wechall.net/challenge/quangntenemy/QMine/qmine-o.jar