LibreOffice Module ridljar (master) 1
Static Public Member Functions | Private Member Functions | List of all members
com.sun.star.lib.unoloader.UnoLoader Class Reference

A helper class for executing UNO JARs. More...

Static Public Member Functions

static void execute (final URL base, URL jar, String[] arguments) throws IOException, ClassNotFoundException, NoSuchMethodException, InvocationTargetException
 Executes a UNO JAR. More...
 

Private Member Functions

 UnoLoader ()
 

Detailed Description

A helper class for executing UNO JARs.

This class is not yet stable.

Available since: \n UDK 3.2.0

Definition at line 36 of file UnoLoader.java.

Constructor & Destructor Documentation

◆ UnoLoader()

com.sun.star.lib.unoloader.UnoLoader.UnoLoader ( )
inlineprivate

Definition at line 84 of file UnoLoader.java.

Member Function Documentation

◆ execute()

static void com.sun.star.lib.unoloader.UnoLoader.execute ( final URL  base,
URL  jar,
String[]  arguments 
) throws IOException, ClassNotFoundException, NoSuchMethodException, InvocationTargetException
inlinestatic

Executes a UNO JAR.

Parameters
basea base URL relative to which the URE JARs (libreoffice.jar, etc.) can be found; must not be null.
jarthe URL of a UNO JAR that specifies a Main-Class; must not be null.
argumentsany arguments passed to the main method of the specified Main-Class of the given JAR jar; must not be null.
Exceptions
IOExceptionif the given base URL is malformed, or if there are any problems processing the given JAR jar.
ClassNotFoundExceptionif the given JAR jar does not specify a Main-Class, or if the specified Main-Class cannot be found.
NoSuchMethodExceptionif the specified Main-Class of the given JAR jar does not have an appropriate main method.
InvocationTargetExceptionif an exception occurs while executing the main method of the specified Main-Class of the given JAR jar.

Definition at line 65 of file UnoLoader.java.

References base, com.sun.star.lib.unoloader.UnoClassLoader.execute(), Object, and run().


The documentation for this class was generated from the following file: