Cannot run program “…/abc.exe”: error=13, Permission denied

前端 未结 2 777
野的像风
野的像风 2020-12-16 03:58

I am trying to execute the following code:

       try 
        {     
            Runtime rt = Runtime.getRuntime() ;     
            Process p = rt.exec(\"         


        
相关标签:
2条回答
  • 2020-12-16 04:24

    You need to change permission of xyz.exe

    chmod u+x /Users/abc/xyz.exe
    
    0 讨论(0)
  • 2020-12-16 04:32

    You didnt have execute permission in that file. You need to change the execute permission for that file.it only contains read and write. Please refer here to change permission

    0 讨论(0)
提交回复
热议问题