How to execute a java program without having a main () method

For solve the problem are possible only by the static Initialization block.