public class JavaWrapper extends Object
java org.apache.bcel.util.JavaWrapper <real.class.name> [arguments]
To use your own class loader you can set the "bcel.classloader" system property
java org.apache.bcel.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 directlyClassNotFoundException
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.