1

I have converted my dex file from apk to to a jar file

Steps:

  1. Change xyz.apk to xyz.zip
  2. Extract xyz.zip
  3. Copy classes.dex to my dex2jar folder
  4. Drag and release clases.dex onto dex2jar.abat
  5. Classes_dex2jar.jar is created
  6. Open clases_dex2jar.jar in JD Gui
  7. Empty screen for JD Gui

Can someone please advise what I have done wrong?

I have also tried doing step 4 using the terminal, but it yields the same result. I am running on Windows 7.

Keale
  • 3,924
  • 3
  • 29
  • 46
yitch
  • 21
  • 1
  • 2
  • I have not experienced this. Are you sure that the apk and the generated files (dex and jar) are not corrupted? – Keale Oct 14 '14 at 02:17
  • At step 4 what did you write using terminal? Instead of command `dex2jar` did you try `d2j-dex2jar.bat` like `C:\Pathto-dex2jar-version\d2j-dex2jar.bat yourApk.apk` ? – Shobhit Puri Oct 14 '14 at 02:47
  • everything you are right,go to command prompt and redirect the path to your folder(xyz),and then type "'dex3jar classes.dex'" after you can see this classes_dex2jar.jar file.Run classes_dex2jar.jar file in decompiler – learner Oct 14 '14 at 04:27

2 Answers2

1

I have never renamed it to zip and extract the file. Normally I copy the apk file to the same folder with dex2jar folder and run:

  d2j-dex2jar.bat file.apk

It will generate the jar file: file.jar and you can open it normally in JD GUI.

T D Nguyen
  • 7,054
  • 4
  • 51
  • 71
1

I suggest using cfr decompiler or procyon as they're much better than JD GUI and produce better results when combined with dex2jar.

mcirsta
  • 13
  • 1
  • 5