public class JavaWrapper extends Object
java jdk7u.jaxp.org.apache.bcel.external.util.JavaWrapper <real.class.name> [arguments]
To use your own class loader you can set the "bcel.classloader" system property which defaults to "jdk7u.jaxp.org.apache.bcel.external.util.ClassLoader", e.g., with
java jdk7u.jaxp.org.apache.bcel.external.util.JavaWrapper -Dbcel.classloader=foo.MyLoader <real.class.name> [arguments]
ClassLoader| Constructor and Description |
|---|
JavaWrapper() |
JavaWrapper(ClassLoader loader) |
| Modifier and Type | Method and Description |
|---|---|
static void |
_main(String[] argv)
Default _main method used as wrapper, expects the fully qualified class name
of the real class as the first argument.
|
void |
runMain(String class_name,
String[] argv)
Runs the _main method of the given class with the arguments passed in argv
|
public JavaWrapper(ClassLoader loader)
public JavaWrapper()
public void runMain(String class_name, String[] argv) throws ClassNotFoundException
class_name - the fully qualified class nameargv - the arguments just as you would pass them directlyClassNotFoundExceptionCopyright © 2018–2021 mhoffrogge. All rights reserved.