cmd cannot recognize dex2jar- Android Apk

Anil Kocabiyik picture Anil Kocabiyik · Feb 4, 2013 · Viewed 40.9k times · Source

i want to get source code from apk and use this solution Is there a way to get the source code from an APK file?

i try to dex file to jar and i used dex2jar; but cmd cannot recognize this command.

dex2jar classes.dex

"dex2jar is not recognized as an internal or external command"

is dex2jar deprecated?

what can i use to convert dex to jar?

Answer

Mightian picture Mightian · Oct 12, 2015

None of the above answers worked for me, I was able to get it working in the following way, There is no need of the classes.dex file. So follow the following instructions carefully:

  1. Download the latest version of dex2jar i was able to google it and get the latest one from sourceforge. just in case if you didnt get it http://sourceforge.net/projects/dex2jar/
  2. drop your apk file inside the dex2jar folder.

  3. open command prompt[win user] and navigate to that folder where you dropped the apk file.

  4. enter this command d2j-dex2jar.bat someApk.apk and you will get the jar file[read the jar file using jd-ui tool] for mac users refer this[point 4 in the link] for suitable terminal command http://sourceforge.net/p/dex2jar/wiki/UserGuide/