Hi,

Kent Gibson a écrit :

> I need to access the Plugin C from my app, without
> using the the java.library.path property. OpenOffice
> seems to rely heavily on the java.library.path
> property, but when I set it at runtime it doesn't seem
> to make any difference. This whole thing only seems to
> work when the OpenOffice "Lib" is in a subdirectory of
> PlugIn A. 
> 
> OpenOffice looks for the local library (Windows:
> officebean.dll, Unix: libofficebean.so) relative to
> the officebean.jar in the <OfficePath>/program
> directory. OpenOffice has some special class loading,
> which I can't get to work with Eclipse across multiple
> plugins.
> 
> Does anyone have any pointers how I can this to work? 

In the Eclipse plugin for OOo Code support, I used a trickery: I created
 a Java application (packaged in a jar in my plugin) that handled OOo. I
just launched this application with Runtime.exec and the right
environment variables (LD_LIBRARY_PATH on Linux and PATH on Windows).

However, there should be other ways that I'm not aware of. If this
couldn't do your trick, I'm interested in any other solution to
dynmically set the java.library.path variable.

Hope that helps,
Cedric

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to