Dynamically calling main method is available via Entrance.present(String...).
As an entry of a jar file, Entrance's main method could dynamically redirect to other class's main method, simply call the Entrance.present(String...) method with "-main" and the class name(which to be redirected) as the first two parameters, any more parameters could be followed and would be passed to the target class's main method.
For example, suppose we have a demo.jar with a main class which simply call: new Entrance.present(args);
Then we can run the command: java -jar demo.jar -main some.other.class param1 param2
And this will call the main method of some.other.class with the given param1 and param2.