I am creating an java application that is for to get list of attached Usb devices and when i run this i get an error called Properties file javax.usb.properties not found.please fix this this is my java code:
package com.example.sample;
import java.util.Iterator;
import java.util.List;
import javax.usb.*;
public class Usb
{
public static void main(String[] args) throws UsbException
{
UsbServices services = UsbHostManager.getUsbServices();
UsbHub root = services.getRootUsbHub();
listPeripherique(root);
}
private static void listPeripherique(UsbHub hub) {
List perepheriques = hub.getAttachedUsbDevices();
Iterator iterator = perepheriques.iterator();
while (iterator.hasNext()) {
UsbDevice perepherique = (UsbDevice) iterator.next();
System.out.println(perepherique);
if (perepherique.isUsbHub()) {
listPeripherique((UsbHub) perepherique);
}
}
}
}