Package com.sun.star.lib.unoloader
Class UnoLoader
java.lang.Object
com.sun.star.lib.unoloader.UnoLoader
A helper class for executing UNO JARs.
This class is not yet stable.
- Since:
- UDK 3.2.0
-
Method Summary
-
Method Details
-
execute
public static void execute(URL base, URL jar, String[] arguments) throws IOException, ClassNotFoundException, NoSuchMethodException, InvocationTargetException Executes a UNO JAR.- Parameters:
base- a base URL relative to which the URE JARs (libreoffice.jar, etc.) can be found; must not benull.jar- the URL of a UNO JAR that specifies a Main-Class; must not benull.arguments- any arguments passed to themainmethod of the specified Main-Class of the given JARjar; must not benull.- Throws:
IOException- if the givenbaseURL is malformed, or if there are any problems processing the given JARjar.ClassNotFoundException- if the given JARjardoes not specify a Main-Class, or if the specified Main-Class cannot be found.NoSuchMethodException- if the specified Main-Class of the given JARjardoes not have an appropriatemainmethod.InvocationTargetException- if an exception occurs while executing themainmethod of the specified Main-Class of the given JARjar.
-