我的 Kinect 有问题。一开始我只使用 OpenNI Samples,它工作得很好。现在我尝试从 NITE 开始并遇到一些问题。如果我运行我的代码,Eclipse 会抛出这样的异常。
Started context generating...
Exception in thread "main" java.lang.NoSuchMethodError: Method com.primesense.NITE.NativeMethods.xnvMessageListener_RegisterActivate(JLjava/lang/Object;Ljava/lang/String;Lorg/OpenNI/OutArg;)I not found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.primesense.NITE.NativeMethods.<clinit>(NativeMethods.java:13)
at com.primesense.NITE.SessionManager.<init>(SessionManager.java:13)
at GestureDetect.configNITE(GestureDetect.java:108)
at GestureDetect.<init>(GestureDetect.java:59)
at GestureDetect.main(GestureDetect.java:484)
OpenNI 和 NITE jar 文件添加到构建路径...但它不起作用:-(