Hello, The cpplite project is fairly simple, and requires manual configuration of build, clean and run commands. It then just runs these commands. So, to ultimately fix this, I would suggest to open the Project Properties (select the project in the Projects tab, right-click and select Properties), go to the Build tab, and specify commands to build your project (possibly something like `gcc -o test main.cpp`), and to run your project (possibly something like an absolute path to the `test` executable - note that using just `test` may not work, and it is possible the executable won't be found).
I have started a PR to fix cpplite to avoid the exception: https://github.com/apache/netbeans/pull/2904 Thanks, Jan On Sun, Apr 18, 2021 at 12:20 AM slipbits <slipb...@slipbits.com> wrote: > Hi Geertjan; > > I don't know what other scenario I can provide. > > I have not setup any gcc compiler and linker commands, in fact nothing is > set up, just the project. But I wouldn't expect NB itself to fail. I would > have guessed that NB would have said something about me failing (to comport > myself). I can work with a diagnostic message. It is NB itself failing that > I'm having difficulty with. > > What I have done is to create a project containing the following main.cpp > file: > > int main(int argc, char** argv) { > return 0; > } > > And then set it up as the main project and then did "Run->Build Main > Project" with the same results as below. > > I will do anything you suggest to provide a scenario. What type of > scenario do you need? > > art > > On 4/17/2021 2:30 PM, Geertjan Wielenga wrote: > > Sorry, not going to figure out a scenario for this to reproduce it. > > Gj > > On Sat, Apr 17, 2021 at 11:28 PM slipbits <slipb...@slipbits.com> wrote: > >> Run->Build Main Project >> On 4/17/2021 1:41 PM, Geertjan Wielenga wrote: >> >> >> >> Can you provide a sequence of steps for someone to reproduce the issue? >> >> Gj >> >> On Sat, 17 Apr 2021 at 22:36, slipbits <slipb...@slipbits.com> wrote: >> >>> NB 12.3 >>> Win7-64 >>> >>> Is there a fix for this? If it is in my program, is there any way of >>> finding out where? >>> >>> I am (very, very) reluctantly using Visual Studio. If this issue is >>> resolved, I can go back to NB. If it's something I need to do or haven't >>> done correctly, can someone give me a clue? My program executes >>> correctly in VS. >>> >>> Error message during run>Build Main Project >>> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 >>> at >>> org.netbeans.modules.cpplite.project.runner.Runner.main(Runner.java:34) >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org >>> For additional commands, e-mail: users-h...@netbeans.apache.org >>> >>> For further information about the NetBeans mailing lists, visit: >>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists >>> >>>