Some basic methods in java package

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.

+3
source share
2 answers

In the project properties in Categories, select Run. that is, the main class. Set your main class there

+2
source

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 . ( ) .

0

All Articles