Cannot use dex2jar on my mac: permission denied

AndroidDex2jar

Android Problem Overview


I downloaded dex2jar and now trying to use it, but if I type 'sh d2j-dex2jar.sh' it shows the following message.

d2j-dex2jar.sh: line 36: ./d2j_invoke.sh: Permission denied

At first I thought that the permission was denied because the programme required the root permission, so I also tried adding 'sudo' to the command, and it did not work either. How should I solve this problem?

Android Solutions


Solution 1 - Android

You need to provide execute permissions to your sh script.

To do that : sudo chmod +x d2j_invoke.sh

Solution 2 - Android

Still If you find no luck use,

chmod a+x *.sh

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser4911668View Question on Stackoverflow
Solution 1 - AndroidShivam VermaView Answer on Stackoverflow
Solution 2 - AndroidAkshay ShindeView Answer on Stackoverflow