(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.
UDK 3.2.7 Java API Reference

com.sun.star.lib.unoloader
Class UnoLoader

java.lang.Object
  extended by 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
static void execute(URL base, URL jar, 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(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 (jurt.jar, ridl.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:
IOException - if the given base URL is malformed, or if there are any problems processing the given JAR jar.
ClassNotFoundException - if the given JAR jar does not specify a Main-Class, or if the specified Main-Class cannot be found.
NoSuchMethodException - if the specified Main-Class of the given JAR jar does not have an appropriate main method.
InvocationTargetException - if an exception occurs while executing the main method of the specified Main-Class of the given JAR jar.

UDK 3.2.7 Java API Reference

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.