I am trying to run the examples on windows. While i am trying to compile the files then i am getting this error logs.
run:
log4j:WARN No appenders could be found for logger (com.mcreations.usb.windows.JavaxUsb).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.RuntimeException: Error : Error while loading shared library <LibusbJNI.dll> :
no LibusbJNI in java.library.path
at ShowTopology.getVirtualRootUsbHub(ShowTopology.java:58)
at FindUsbDevice.main(FindUsbDevice.java:29)
Java Result: 1
BUILD SUCCESSFUL (total time: 3 seconds)
But i didn't fine any LibusbJNI.dll file.. There was a usbJNI.dll file.So i renamed it to LibusbJNI.dll and then compiled again. But again i got this following error.
run:
log4j:WARN No appenders could be found for logger (com.mcreations.usb.windows.JavaxUsb).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.RuntimeException: Error : Error while loading shared library <LibusbJNI.dll> :
C:\PARTHOS WIN HDD\Java Codes\NB Projects\javax-usb-libusb\LibusbJNI.dll: Can't find dependent libraries
at ShowTopology.getVirtualRootUsbHub(ShowTopology.java:58)
at FindUsbDevice.main(FindUsbDevice.java:29)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)
But i added all lib which i have got from this link >> http://javax-usb.cvs.sourceforge.net/viewvc/javax-usb/javax-usb-libusb/lib/
Please tell me what i need to do to run the examples. What i am missing....
Hi , Partho, have you got the solution, I am getting simmiler error, Plz help me out