Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert .dex to .jar in mac osx

Tags:

android

I'm using Mac OSX(10.7) and trying to extract java file from a android apk. So i downloaded apk and then copied dex2jar file from http://code.google.com/p/dex2jar/

After extracting dex file from apk(classes.dex), i had unzipped dex2jar and opened termial changed directory path to dex2jar and executed as below

my-MacBook-Pro:dex2jar-0.0.9.11 my$ **dex2jar.sh classes.dex**

but it says *-bash: dex2jar.sh: command not found*

I checked in directory and dex2jar.sh is present. What is the mistake i'm doing

like image 432
JavaGeek Avatar asked Nov 03 '12 14:11

JavaGeek


1 Answers

Try ./dex2jar.sh . My guess is this directory isn't in your $PATH, so your system doesn't know where to find it. The ./ will tell it to look in the current directory.

like image 142
Booger Avatar answered Sep 28 '22 09:09

Booger