Apk decompilation error: d2j-dex2jar command not found

I am trying to get the source code from .apk

I followed the steps from here. Is there a way to get the source code from the APK file? but in step 2.4, when I wrote on my cmd dex2jar path> d2j-dex2jar classes.dex , I get

" 'd2j-dex2jar' is not recognized as an internal or external command, operating program or batch files. "

any solutions?

+7
apk dex2jar
source share
7 answers

Use dex2jar classes.dex instead of d2j-dex2jar classes.dex And please check which version of dex2jar is with you. if it is a jx file dex2jar-2.x, try downloading the jx file of the dex2jar-0.0.9.15 file.

+10
source share

for dex2jar 2.0 version, please follow these steps to create a jar

  • download dex2jar ( https://sourceforge.net/projects/dex2jar/files/ )
  • extract folder
  • goto folder on the command line
  • chmod u + x d2j_invoke.sh
  • chmod u + x d2j-dex2jar.sh
  • put the desired apk to decompile in the dex2jar folder.
  • sh d2j-dex2jar.sh -f -o output_jar.jar my_app.apk
  • This will create output_jar.jar in the same folder
+8
source share

Add permission with: chmod + x d2j-dex2jar.sh Then run it with: ./ d2j-dex2jar.sh app.apk

+4
source share

put all apk files, hidden zip, apktool, apktool install, dex2jar, jd-gui folders under one folder ... open a command prompt (admin) .. then go to the directory of your newly created folder. then type ... d2j-dex2jar classes.dex, press enter ... this is ur problem solved ... cheezzz

there is no need to add any xtra permissions ... it worked for me ... it works for you too ...

+1
source share

Just go to the folder where you put your classes.dex file, and then just run the command at the command line http://i.stack.imgur.com/8X3aP.png

-Make sure you download the latest version of dex2jar, which is dex2jar-2.0. download it using this link

https://sourceforge.net/projects/dex2jar/

-It will then make your classes.dex file executable jar 'classes-dex2jar.jar'

0
source share

If you downloaded d2j-dex2jar-2.x and then it will not contain the d2j-dex2jar.sh file

so try downloading dex2jar-0.0.9.15 from the link dex2jar-0.0.9.15

Finally, extract this zip file and you will find the d2j-dex2jar.sh file .

Hope this helps you!

0
source share

you must use dex2jar-0.0.9.15 to decompile apk the older version of dos'nt correctly, because some files using the bat extension

0
source share

All Articles