X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=rtl%2FLauncher.java;h=5077fa884a1620022ba77acc0ca4f32b1d7467a2;hb=f226da0f861c2dbf26d3851fbe47794b21a92a25;hp=220f671f5dde0d0efeb9f61f29dd4878be32ff29;hpb=879793eaf1d6378593f78a192f2961670f686530;p=dsw-obn.git diff --git a/rtl/Launcher.java b/rtl/Launcher.java index 220f671..5077fa8 100644 --- a/rtl/Launcher.java +++ b/rtl/Launcher.java @@ -1,6 +1,17 @@ -class Launcher { +import java.lang.reflect.*; + +class Launcher +{ public static void main(String[] args) - throws ClassNotFoundException, InstantiationException, IllegalAccessException { - Class.forName(args[0]).newInstance();; + throws + ClassNotFoundException, + InstantiationException, + IllegalAccessException, + NoSuchMethodException, + InvocationTargetException + { + Class module = Class.forName(args[0]); + Method begin = module.getMethod("BEGIN"); + begin.invoke(null); } }