How to acess native libraries (dlls on Windows) from a plugin? [message #467295] |
Wed, 02 May 2007 09:49  |
Eclipse User |
|
|
|
Originally posted by: georg.moleque.com.br
Hi,
from my plugin (actually it´s an extension which will be loaded from
another RCP) I need to acess some native libraries (dlls from Lotus
Notes, more precisely). The directory where these dlls are located
(C:/lotus/notes) are included in the PATH of Windows, so when I run a
Java Test app form terminal, there is no problem.
Now how can I acess them from my plugin? I don´t want to include the
dlls as copies (it´s not one dll but a whole bunch of them, after all),
but rather give a path where the classloader should look for it. I read
it´s important to set in the Manifest (tried something like
Bundle-NativeCode:...), but couldn´t make it work.
Is it at all possible to tell the plugin where to look for the dlls
without including them?
Any help would be greatly apreciated,
Georg
|
|
|
Re: How to acess native libraries (dlls on Windows) from a plugin? [message #467721 is a reply to message #467295] |
Thu, 10 May 2007 09:09  |
Eclipse User |
|
|
|
They either have to be in your system-appropriate path (PATH on windows,
LD_LIBRARY_PATH on *nix) or in your Bundle-NativeCode:
Did you specify all of the DLLs in nativecode? (I think you would have
to spec them individually). In Bundle-ClassPath, you can use the
external: keyword to reference jars that are installed elsewhere in your
system. maybe the external: keyword is needed in nativecode (although
maybe it doesn't work).
You could also specify your java.library.path when you start up your RCP.
Later,
PW
|
|
|
Powered by
FUDForum. Page generated in 0.03142 seconds