Cannot use dex2jar on my mac: permission denied

安稳与你 提交于 2019-11-28 23:33:52

问题


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?


回答1:


You need to provide execute permissions to your sh script.

To do that : sudo chmod +x d2j_invoke.sh




回答2:


Still If you find no luck use,

chmod a+x *.sh



来源:https://stackoverflow.com/questions/30875382/cannot-use-dex2jar-on-my-mac-permission-denied

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!