dex2jar

Convert Android DEX to JAR.

KaliParrotLinuxpassive

pkg: dex2jar

dex2jar converts Dalvik .dex to .class/.jar so you can inspect Android code in JVM tools (jd-gui).

Syntax

d2j-dex2jar {app.apk}

Example

d2j-dex2jar app.apk -o app.jar

Produces a JAR you can open in a Java decompiler.

Advantages
  • Bridges Android → JVM tools
  • Simple
Disadvantages
  • Conversion can fail/obfuscate
  • Extra step vs jadx
Tags
#android#dex

Official docs: dex2jar

Related commands

Frequently asked questions

What is dex2jar used for?
dex2jar converts Dalvik .dex to .class/.jar so you can inspect Android code in JVM tools (jd-gui).
What is an example dex2jar command?
A common example is: d2j-dex2jar app.apk -o app.jar — Produces a JAR you can open in a Java decompiler.
Is dex2jar part of Kali Linux?
Yes. dex2jar ships with Kali Linux (and Parrot OS). If missing, install it with: sudo apt install dex2jar.
What category of security tool is dex2jar?
dex2jar is a Reverse Engineering tool with a passive-risk profile when run against a live target.

Try recon tools live

Run real scans against a domain you control, stage by stage.

Open the lab →