I'm using libusb for communicating with usb device in java. My operating system is linux. But I have problem about open device.
DeviceHandle handle = LibUsb.openDeviceWithVidPid(null, VENDOR_ID, PRODUCT_ID_1);
if(handle == null){
System.out.println("Device Not Opened");
}else{
System.out.println("Device Opened");
}
I'm getting the error that "handle must not be null".
How can I solve this problem. Thanks for your reply from now.