Run failed in Netbeans 8.2, c++ "No such file or directory" (Beginner)

I'm setting up the Netbeans IDE, and i downloaded Cygwin for the compiler, make and debugger (Windows 8.1). The problem is that when i try to debug or run, this error happens.

C:\\cygwin64\\bin\\bash: exec /cygdrive/C/Users/MyName/Documents/NetBeansProjects/Pi_1/dist/Serial/Cygwin-Windows/pi_1.exe: No such file or directory

RUN FAILED (exit value 127, total time: 90ms)

I don't know if i'm missing something to install or if i used wrong versions of g++, make, etc...


I had experienced a similar problem on other IDEs (haven't used Netbeans). It turned that the anti-virus was quarantining the executable generated after compilation. I just "whitelisted" (prevent anti-virus from scanning in future) the directory where i saved my programs, and that solved the problem.

NetBeans C++ program execution “RUN FAILED” Error, For example, if you are running the 64-bit version of Windows operating system, 64-bit Java and 64-bit Cygwin (that is setup-x86_64.exe) are required to be  C:\Users\HP\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1 BUILD FAILED (total time: 2 seconds) Please guide me how to solve this problem


I had such error. In my case the folder name in the project path was the reason. Try to change location of your project to something simple, like "c:\NetBeansProjects\prj1".

Configuring NetBeans IDE 8.0 for C/C++/Fortran, Run the setup.exe program. Accept the defaults until you reach the Select Your Internet Connection page. Select the option on this page that is best for you. Click​  Olá, eu também estou com um problema parecido: Hello, I also have the following problem: Erro: Não foi possível localizar nem carregar a classe principal primeiroprograma.PrimeiroPrograma C:\Users\Samsung\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1 FALHA NA CONSTRUÇÃO (tempo total: 0 segundos)


Happened to me as well. The reason, as already mentioned, was that the build folder contained characters as () and spaces. C / Windows 10

Configuring the NetBeans IDE for C/C++/Fortran, For now there is no autoconf support in NetBeans™ C/C++ Development Pack. Launch cygwin shell, change directory to the one you extracted project into and run . The list on the right contains all #include directives that failed to resolve. In this tutorial I will show you how to configure and setup the NetBeans IDE for C/C++ using the Cygwin compiler. After you watch my tutorial this will allow you to compile a C/C++ file with NetBeans.


NetBeans Developing Existing Application With the NetBeans C , Run the test to see that it generates a failure shown in the Test Results window. Next you edit the test file to  If you have NetBeans IDE 8.0 without the C/C++ plugin. If your NetBeans IDE does not show a C/C++ project category when you select File > New Project, complete the following steps to add the C/C++ plugin module to the IDE. If your network uses a proxy, choose Tools > Options > General in the IDE, select Manual Proxy Settings, enter the HTTP


Adding Unit Tests to a C/C++ Project, /cygdrive/C/Users/MyName/Documents/NetBeansProjects/Pi_1/dist/Serial/​Cygwin-Windows/pi_1.exe: No such file or directory RUN FAILED (exit value 127,​  If your NetBeans IDE does not show a C/C++ project category when you select File > New Project, complete the following steps to add the C/C++ plugin module to the IDE. If your network uses a proxy, choose Tools > Options > General in the IDE, select Manual Proxy Settings, enter the HTTP Proxy and Port for your proxy, and click OK.


Run failed in Netbeans 8.2, c++ “No such file or directory” (Beginner , Run failed in Netbeans 8.2, c++ “No such file or directory” (Beginner). I'm setting up the Netbeans IDE, and i downloaded Cygwin for the compiler, make and  The IDE also has a range of new tools for HTML5/JavaScript, in particular for Node.js, KnockoutJS, and AngularJS; enhancements that further improve its support for Maven and Java EE with PrimeFaces; and improvements to PHP and C/C++ support. NetBeans IDE 8.2 is available in English, Brazilian Portuguese, Japanese, Russian, and Simplified Chinese.