-
Notifications
You must be signed in to change notification settings - Fork 221
Small correction
Daniel Finnegan edited this page May 11, 2013
·
1 revision
Hi folks
As I couldn't figure out why the decompiler was not working (admittedly, I probably did not understand the documentation well enough), I propose making a slight modification to the source of ClassloaderError in error.py :
class ClassLoaderError(Exception):
def __init__(self, typen=None, data=""):
self.type = typen
self.data = data
message = "\nI'm gonna die now. Did you pass the current directory (.) to the -path option when calling decompile.py??"
message += "\n{}: {}".format(typen, data) if typen else str(data)
super(ClassLoaderError, self).__init__(message)
After spending an hour and a half wondering why it wasn't working, and reading through the source of krakatau (which is excellent by the way) I eventually realised my error; it is necessary to specify the current directory on the path not just the name of the class file as a target. The following command know works for me (with a file called Test.class in the working directory :
python Krakatau\decompile.py -path . Test
Hope this helps anybody else who might have this problem :-)
Best regards
Ps2Fino