X-Git-Url: http://deadsoftware.ru/gitweb?p=dsw-obn.git;a=blobdiff_plain;f=rtl%2FLauncher.java;h=5077fa884a1620022ba77acc0ca4f32b1d7467a2;hp=220f671f5dde0d0efeb9f61f29dd4878be32ff29;hb=d54469555328facc1c3b20e741b0bc3d2061685d;hpb=757bfb90589d07922991e34a4cc36ef434c8e3bb 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); } }