<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 popup menu. Best regards, René >
<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-click on the sub-project that contains your main class and run the project that way. I'm just giving this information because your screenshot did not show your Projects window, so I am not sure of the project on which you cannot run. In the future, it helps if you let us know what version of Apache NetBeans you are using, as well as some general information regarding your project. Sincerely, Sean Carrick > 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 is the link for this problem on internet: Run File option greyed out whenever I make a new class in Netbeans | | | | | | | | | | | Run File option greyed out whenever I make a new class in Netbeans I'm sorry if this is a dumb question since I'm a beginner, but I have this problem whenever I create a new class... | | | Zulfi. On Monday, October 28, 2024 at 07:45:57 AM CDT, Sean Carrick <s...@pekinsoft.com> wrote: 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-click on the sub-project that contains your main class and run the project that way. I'm just giving this information because your screenshot did not show your Projects window, so I am not sure of the project on which you cannot run. In the future, it helps if you let us know what version of Apache NetBeans you are using, as well as some general information regarding your project. Sincerely, Sean Carrick On Sun, Oct 27, 2024 at 11:18 PM Zulfi Khan <zulfi6...@yahoo.com.invalid> wrote: Hi, Somebody please guide me on how to enable the Run File option in the Run Menu. I have attached the image. I can't run GUI programs. Please guide me on how to solve it. Zulfi. --------------------------------------------------------------------- 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