This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
On Linux after importing a project from zip there is the following error when trying to run the application on Android device/emulator: execvp(): Permission denied Error: /home/xxxx/NetBeansProjects/MT/platforms/android/cordova/run: Command failed with exit code EACCES at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/src/superspawn.js:112:23) at ChildProcess.EventEmitter.emit (events.js:95:17) at Process.ChildProcess._handle.onexit (child_process.js:787:12) Running command: /home/xxxx/NetBeansProjects/MT/platforms/android/cordova/run args=[] Command finished with error code EACCES: /home/xxxx/NetBeansProjects/MT/platforms/android/cordova/run /home/tomek/NetBeansProjects/MT/nbproject/build.xml:267: exec returned: 1 BUILD FAILED (total time: 7 seconds) How to generate this error on LINUX machine: 1. Create a new cordova project with the Hello World template. Run it on a device. There are no errors. 2. Export the project to zip 3. Delete the old project. Delete the project whole folder too. 4. Import the project from zip. 5. Try to run in on an android device - you will obtain an error
platforms/android/cordova/run has wrong permissions. Try to delete whole platforms folder - it should be recreated on run.
Thank you. It works but I thing it should be solved in Netbeans. When I describe this solution to my students they will just surest to use another tool but not Netbens.
(In reply to ironbone from comment #2) > Thank you. It works but I thing it should be solved in Netbeans. > When I describe this solution to my students they will just surest to use > another tool but not Netbens. OK and what happens if you unzip this project, cd to this project and run this command from command line "cordova run android" I guess you will get the very same error.
Yes of course. But this problem occurs first after Netbeans creates the zip file. Additionally when I create a project, add platform and build using command line and them I make a zip archive. Then I unzip and build one more time it there are no problems. So does not seams to be cordova error.
(In reply to ironbone from comment #4) > Yes of course. But this problem occurs first after Netbeans creates the zip > file. How do you create zip files in NetBeans?
I just export my project to zip. File -> Export Project -> To Zip One thing what I have forgotten and is very important for this error. Before you export the project you MUST RUN IT first. In my opinion the files/directories with Permission denied are created during the building process.
Created attachment 146269 [details] Problematical exported project Just import this project on a computer with Linux into NetBeans and try to run on Android device. You will see the problem.
I would say, that the problem is, that project was zipped on platform without execute permissions (windows) and later unzipped without execute permission. I'm really not sure how to fix it properly.
No. It was "ziped" on Linux and then imported on Linux. I will try to observe this situation and maybe will find something
Export project to zip does not preserve file permissions. Reassigning to projects.
I also confirm the same problem on Mac computers. I have this situation only with CORDOVA projects. There are no problems with export/import C++ or Java applications
I have also the same problem when after the compilation I move my Project to a new directory (using the netbeans Move... option)
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss