Package com.sun.star.lib.unoloader
Class UnoLoader
- java.lang.Object
-
- com.sun.star.lib.unoloader.UnoLoader
-
public final class UnoLoader extends java.lang.ObjectA 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(java.net.URL base, java.net.URL jar, java.lang.String[] arguments)Executes a UNO JAR.
-
-
-
Method Detail
-
execute
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.InvocationTargetExceptionExecutes 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:
java.io.IOException- if the givenbaseURL is malformed, or if there are any problems processing the given JARjar.java.lang.ClassNotFoundException- if the given JARjardoes 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 JARjardoes not have an appropriatemainmethod.java.lang.reflect.InvocationTargetException- if an exception occurs while executing themainmethod of the specified Main-Class of the given JARjar.
-
-