最近我对 dLibs 感兴趣,它是 OpenKinect 的 Java 包装器。但是我在eclipse中运行代码有困难;我已经根据我的想法添加了库。如何运行代码,例如 .pde 文件?我写了这样的东西,看看它是如何工作的......
public class Test {
public static void main(String[] args) {
Kinect.loadLibrary( "C:/Users/admin/Dropbox/new_workspace/dLibs/", "freenect.dll" );
Kinect k= new Kinect(0);
System.out.println(k.isReady());
}
}
========== 但我得到这个错误:
#_KINECT_ERROR___#
location: dLibs.freenect.FreenectLibrary.loadLibrary(FreenectLibrary.java:177)
message: Unable to load library : freenect.dll
message: path = "C:\Users\admin\Dropbox\new_workspace\dLibs/freenect.dll"
message: try 'MyKinect.loadLibrary( "your dll path/", "freenect.dll" )'
FreenectLibrary 的第 177 行是关于 loadLibrary(...) 方法的。
任何人都可以帮我吗?