Invokes the main method of the provided class name. @param args the command line arguments
(String className, String[] args)
| 99 | * @param args the command line arguments |
| 100 | */ |
| 101 | @SuppressWarnings("SameParameterValue") |
| 102 | static void invokeMain(String className, String[] args) { |
| 103 | try { |
| 104 | Class.forName(className) |
| 105 | .getMethod("main", String[].class) |
| 106 | .invoke(null, new Object[] { args }); |
| 107 | |
| 108 | } catch (Exception e) { |
| 109 | throw new InternalError("Failed to invoke main method", e); |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | |
| 114 | // /** |