0

i'm trying to load a dll in an equinox osgi environement using System.load() , the path to the dll file is correct but i always get java.lang.UnsatisfiedLinkError . i managed to load the dll when it is placed in System32 folder. using : System.loadLibrary().

the dll works just fine when i experiment with a plain java main class , there's no need to programmaticaly load the dll since eclipse does it .

is there anything specific to OSGI that prevents me from loading my DLL ?

4

1 回答 1

0

您的 JVM 是否有可能两次加载 dll?这也会在第二次尝试时导致 UnsatisfiedLinkError。

于 2014-04-14T11:38:37.760 回答