Extract source code from .jar file

后端 未结 11 978
名媛妹妹
名媛妹妹 2020-11-28 17:42

Is there a way to extract the source code from an executable .jar file (Java ME)?

11条回答
  •  醉梦人生
    2020-11-28 18:42

    Do the following on your linux box where java works (if u like the terminal way of doing things)

    cd ~
    mkdir decompiled_code && cd decompiled_code
    wget https://bitbucket.org/mstrobel/procyon/downloads/procyon-decompiler-0.5.36.jar
    java -jar procyon-decompiler-0.5.36.jar /Path/to/your/jar -o .
    

    NOTE : as @Richard commented "this may be illegal depending on whether you own the copyright to the jar, the country you live in and your purpose for doing it."

提交回复
热议问题