Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to acess native libraries (dlls on Windows) from a plugin?
How to acess native libraries (dlls on Windows) from a plugin? [message #467295] Wed, 02 May 2007 09:49 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:How to enable default keyboard support in RCP application
Next Topic:Menu contributions grayed out in 3.3
Goto Forum:
  


Current Time: Thu May 15 06:56:01 EDT 2025

Powered by FUDForum. Page generated in 0.03142 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top