Tip: You can type "psvm" then the TAB key and netbeans code template feature will generate a main method for you.
On Mon, Jun 28, 2021 at 8:59 PM Zulfi Khan <[email protected]> wrote: > > Hi, > Thanks for pointing out the problem in the signature of main. I wrote the > main class as: > > package com.mycompany.fibseries2; > > /** > * > * @author zulfi > */ > public class MyTest { > public static void main(String[] args){ > System.out.println("Test"); > } > } > > > It worked. > > Zulfi. > > On Monday, June 28, 2021, 8:16:57 PM CDT, Zulfi Khan <[email protected]> > wrote: > > > Hi, > I am working on Netbeans 12.4. > > I have created the project FibSeries2. When I am trying to run it by > selecting the project name from the left pane and right clicking the mouse > and then selecting “Run”, I am getting a small window which says “no main > classes Found”. > > But when I click Build, it works but run is not working. When I click on run, > a small window comes, which tell, no main found. > > > Please guide me. > > I have attached the image. > > > Zulfi. > > -- -Juan Algaba --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
