DeviceList在Eclipse中返回一个大小为0的Vector在我想在Eclipse 中工作的netbeans中运行良好
Vector deviceList = CaptureDeviceManager.getDeviceList(new RGBFormat());
Java程序的语义与执行它的IDE无关。
如果代码在Eclipse中的工作方式与在NetBeans中的不同,您应该检查您的
- 使用相同的库(编译时/运行时)
- 使用相同的程序参数来启动程序
- 使用相同的命令行选项启动VM