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
| Modifier and Type | Field and Description |
|---|---|
| private final ClassLoader |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static ClassLoader | |
| public static void | |
| public void |
| loader | back to summary |
|---|---|
| private final ClassLoader loader | |
| JavaWrapper | back to summary |
|---|---|
| public JavaWrapper() | |
| JavaWrapper | back to summary |
|---|---|
| public JavaWrapper(final ClassLoader loader) | |
| getClassLoader | back to summary |
|---|---|
| private static ClassLoader getClassLoader() | |
| main | back to summary |
|---|---|
| public static void main(final String[] argv) throws Exception Default main method used as wrapper, expects the fully qualified class name of the real class as the first argument. | |
| runMain | back to summary |
|---|---|
| public void runMain(final String className, final String[] argv) throws ClassNotFoundException Runs the main method of the given class with the arguments passed in argv
| |