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- 
executepublic 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 be- null.
- jar- the URL of a UNO JAR that specifies a Main-Class; must not be- null.
- arguments- any arguments passed to the- mainmethod of the specified Main-Class of the given JAR- jar; must not be- null.
- Throws:
- IOException- if the given- baseURL is malformed, or if there are any problems processing the given JAR- jar.
- ClassNotFoundException- if the given JAR- jardoes not specify a Main-Class, or if the specified Main-Class cannot be found.
- NoSuchMethodException- if the specified Main-Class of the given JAR- jardoes not have an appropriate- mainmethod.
- InvocationTargetException- if an exception occurs while executing the- mainmethod of the specified Main-Class of the given JAR- jar.
 
 
-