Re: Run File option not enable in Run Menu

2024-10-29 Thread Sean Carrick
Going by this image you posted on your question in StackOverflow: [image: image.png] The TwoDArray class is not a *main class*. In other words, it may not have a public static void main(String... args) method contained in it. The icon in the *Projects* window has no "run" icon on its lower-right co

Re: Run File option not enable in Run Menu

2024-10-28 Thread Zulfi Khan
Dear Sean and Rene-I tried your option both from pop up menu and Run menu but Run File option is not enabled. Actually I tried to install Javascript on Netbeans after that it happened. I think insatalltion removed some plugin. Somebody please guide me. I have attached the images. Following i

Re: Run File option not enable in Run Menu

2024-10-28 Thread Sean Carrick
Zulfi, If your project uses the Maven build system and is a POM project with multiple sub-projects, the you need to set the sub-project that has your main class as the "Main Project". Doing this will enable the "Run" action in the menu. If you do not set a main project, then you will need to right

Re: Run File option not enable in Run Menu

2024-10-28 Thread René Pöpperl
Hi Zulfi, the run menu relates to the file you have selected in the projects view. So, single click the file you want to run in the projects view. Then you can open the „run“ menu and choose „Run file“. You can also right click the file in the projects view and select „Run File“ within the pop