I am developing an Eclipse RCP application. I have a PluginA which is the main plugin and a PluginB which has JNA wrapper classes for the dll's I have to use. I have these dll's (about 7 to 8) at the root level of the PluginB. But when I try to access the JNA wrapper classes, I get an exception
java.lang.UnsatisfiedLinkError: Unable to load library
I tried using
Bundle-NativeCode:libxxx.dll; osname=win32; processor=x86,
but it doesnt work.
Eclipse version: 3.4.2
OS: Windows XP
Java version: 1.5
I tested the dll's and JNA wrapper classes in standalone Java application and it works fine. So it is clearly a problem of loading the dll's. I put the dll's in the Windows/System32 folder, then the dll's load successfully. But obviously this is not the solution I want. I want to pack the dll's in pluginB.
Can somebody please help me fix this problem