Inconsistent which classes I am able to run "main" on.

Answered

Each of my classes has a "main", but only some of them will let me run that.  I can't see any differences between the classes.

When I go into the run configurations the icons are different.  The one which shows the unlock (first item in screen shot) I can run, and the one which shows as locked (last item in screen shot) I can't run.  But I don't understand where those are being gotten from.  How that is set.

I guess I should be writing junits instead.

 

0
4 comments

What's the full signature of the main method in that class?

0
Avatar
Permanently deleted user

This

and this

The same

0

It's not the same, it must be public if you want to run it, your second class has private main method.

0
Avatar
Permanently deleted user

Wow, strange how you can look at something and not see it.  Thanks.

0

Please sign in to leave a comment.