Hacker News new | ask | show | jobs
by chii 272 days ago
You've just described separate programs that happen to be bundled together (in the same jar presumably).

Each invocation of the jvm requires that you specify the class for which a single static main exists. The other classes containing other static mains are irrelevant.

1 comments

No they didn't. Seems like you arbitrarily redefined what a program means to argue.