Storyyeller / Krakatau

Java decompiler, assembler, and disassembler
GNU General Public License v3.0
1.95k stars 220 forks source link

Load external libs #30

Closed KevinSupertramp closed 10 years ago

KevinSupertramp commented 10 years ago

Hello,

Is it possible to load external libs with the "-path" option ? I tried like this :

python Krakatau-master/decompile.py -path /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/rt.jar lib/*.jar -out decompiled/ file.jar

But it doesn't work, I get the error "unrecognized arguments".

Thank you, Kevin

Storyyeller commented 10 years ago

Each path argument needs to be a semicolon delimited list, though you can have more than one path argument. So you could do either

-path /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/rt.jar;lib/*.jar

or

-path /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/rt.jar -path lib/*.jar

Unfortunately, wildcards are currently not recognized, so this still won't do quite what you intended (it will look for a file named *.jar).