Class UnoLoader


  • public final class UnoLoader
    extends java.lang.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 void execute​(java.net.URL base, java.net.URL jar, java.lang.String[] arguments)
      Executes a UNO JAR.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.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 main method of the specified Main-Class of the given JAR jar; must not be null.
        Throws:
        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.