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

Reply via email to