public class JavaWrapper extends Object
Call this wrapper with:
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 className,
String[] argv)
Runs the main method of the given class with the arguments passed in argv
|
public JavaWrapper()
public JavaWrapper(ClassLoader loader)
public static void main(String[] argv) throws Exception
Exceptionpublic void runMain(String className, String[] argv) throws ClassNotFoundException
className - the fully qualified class nameargv - the arguments just as you would pass them directlyClassNotFoundExceptionCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.