I have a project in NetBeans where two different classes have public static void main (String [] args). When I press F6, the first class "main" is always called. Why not the second? When I try to display args arguments, it says that this array is empty.
In the project properties in Categories, select Run. that is, the main class. Set your main class there
I do not know Netbeans, but in Eclipse it automatically configures the launch configuration, which you can easily configure to specify the full package and the name of the class containing the main class.
, , , netBeans . ( ) .