Package com.sun.star.lib.unoloader
Class UnoLoader
- java.lang.Object
-
- com.sun.star.lib.unoloader.UnoLoader
-
public final class UnoLoader extends Object
A helper class for executing UNO JARs.This class is not yet stable.
- Since:
- UDK 3.2.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidexecute(URL base, URL jar, String[] arguments)Executes a UNO JAR.
-
-
-
Method Detail
-
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.
-
-