On 1/29/10 10:27 AM, Philippe Denis wrote:
Hello,

I create a java UNO-IDL project in eclipse. In this project, I use
external librairies. After, I deploy my module in OO without any problem.
However, when I launch my macro that uses my module, I receive an error
: some classes are not found during the execution.

I understand that when I deploy my module in OO, my libriairies are not
imported in OpenOffice.

Do you know how I can use external librairies? or Do you know if it's
possible to use an external librairie in a UNO-IDL project?

The external libriaire is just a .jar file that I created.

let's assume your service is defined in IDL mytypes.idl -> mytypes.[rdb|jar] and implemented in myimpl.jar. And you have an additional library myhelper.jar.

The structure in your oxt looks like

\...
\mytypes.rdb
\mytypes.jar
\myimple.jar
\lib\myhelper.jar

Then you need at least the following manifest entries in your myimple.jar

UNO-Type-Path: mytypes.jar.jar
Class-Path: lib/myhelper.jar
RegistrationClassName: <the name of your implementation class or the appropriate registration class>

This means that mytypes.jar are loaded globally to make the new types available. myhelper.jar is a direct dependency of myimpl.jar and loaded via the same classloader that loads your myimpl.jar. Every extensions is loaded in their own classloader. This classlaoder inherit the env of the global classloader.

I hope this helps

Juergen


Thank you very much.


Philippe

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to