yitch
yitch

Reputation: 21

Converted dex2jar to .jar file. However results are empty in JD GUI

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.

Upvotes: 1

Views: 3075

Answers (2)

mcirsta
mcirsta

Reputation: 13

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

Upvotes: 1

T D Nguyen
T D Nguyen

Reputation: 7613

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.

Upvotes: 1

Related Questions