org.apache.bcel.util
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 which defaults to "org.apache.bcel.util.ClassLoader", e.g., with
java org.apache.bcel.util.JavaWrapper -Dbcel.classloader=foo.MyLoader <real.class.name> [arguments]
Version: $Id: JavaWrapper.java 386056 2006-03-15 11:31:56Z tcurdt $
See Also: ClassLoader
Field Summary | |
---|---|
ClassLoader | loader |
Constructor Summary | |
---|---|
JavaWrapper(ClassLoader loader) | |
JavaWrapper() |
Method Summary | |
---|---|
static ClassLoader | getClassLoader() |
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
|
Parameters: class_name the fully qualified class name argv the arguments just as you would pass them directly