2 ms·
The JEP says: > If a launched class has no static main method but has a non-private zero-parameter constructor ... and a non-private instance main method, then
by pron 4y ago
The JEP says:
> If a launched class has no static main method but has a non-private zero-parameter constructor ... and a non-private instance main method, then construct an instance of the class... [and] invoke the instance main method
Your class doesn't have a zero-parameter constructor nor a suitable static main, so launching it as a program will fail (as it would today).