I think I may be mistaken on that one. I thought that you could get some code up and running from a static initializer block without a main, but on looking into this, I'm not so sure any more.
Type: Posts; User: curmudgeon
I think I may be mistaken on that one. I thought that you could get some code up and running from a static initializer block without a main, but on looking into this, I'm not so sure any more.
The program needs either an explicit main method or an implicit one (such as with an applet) in order to run. I know of no way around this other than using a static initializer kludge.