public final class UnoLoader
extends java.lang.Object
This class is not yet stable.
| Modifier and Type | Method and Description |
|---|---|
static void |
execute(java.net.URL base,
java.net.URL jar,
java.lang.String[] arguments)
Executes a UNO JAR.
|
public static void execute(java.net.URL base,
java.net.URL jar,
java.lang.String[] arguments)
throws java.io.IOException,
java.lang.ClassNotFoundException,
java.lang.NoSuchMethodException,
java.lang.reflect.InvocationTargetException
base - a base URL relative to which the URE JARs
(libreoffice.jar, etc.) can be found; must
not be null.jar - the URL of a UNO JAR that specifies a Main-Class; must not be
null.arguments - any arguments passed to the main method of
the specified Main-Class of the given JAR jar; must not be
null.java.io.IOException - if the given base URL is malformed, or
if there are any problems processing the given JAR jar.java.lang.ClassNotFoundException - if the given JAR jar does not
specify a Main-Class, or if the specified Main-Class cannot be found.java.lang.NoSuchMethodException - if the specified Main-Class of the given
JAR jar does not have an appropriate main
method.java.lang.reflect.InvocationTargetException - if an exception occurs while executing
the main method of the specified Main-Class of the given JAR
jar.