在OSGi中访问LeapMotion API时发生java异常\u访问\u冲突
我试图在OSGi(Felix)中使用新的Leap Motion传感器,但最终出现了异常访问冲突
在我的清单中,我声明Bundle NativeCode,比如
<Bundle-NativeCode>
x86/Leap.dll;x86/LeapJava.dll;osname=win32;processor=x86
</Bundle-NativeCode>
当然:
- 在OSGi之外使用相同库的简单程序可以很好地工作
- 这两个库在“x86”文件夹中的我的包中
- “osname=win32;processor=x86”适合我(已经用其他bunble进行了测试)
在反编译Leap Motion jar之后,我看到了Leap Java。dll是唯一加载的库(使用System.loadLibrary(“LeapJava”))。他们是否可能没有正确加载其他库
知道吗
编辑1:正如Felix开发者介绍的,这个链接可能会有帮助http://wiki.osgi.org/wiki/Dependencies_In_Native_Code
共 (0) 个答案