Problème USB en Java sous Windows
Bonjours, je veux utilisé la librairie Jusb sur windows. J'ai ajouté quelque variable d'environnement, la bibliotheque, et le jusb.dll dans un dossier
qui se trouve dans la PATH du systeme ( system32 ou jdk\bin)
mais je reçoit toujours cet exeption:
Code:
1 2 3 4 5 6 7 8 9 10 11 12
|
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jdk1.6.0_26\bin\jusb.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at usb.windows.Windows.getHost(Windows.java:93)
at usb.windows.Windows.createHost(Windows.java:79)
at usb.core.HostFactory.maybeGetHost(HostFactory.java:98)
at usb.core.HostFactory.getHost(HostFactory.java:80)
at RunUSBControllerTest.main(RunUSBControllerTest.java:31) |
J'ai essayé d'autre Librairie comme javaUsb (J'ai pas trouve de dll mais j'ai WinJavaInf.exe à la place. Sauf que je sais pas l'utilisé). Je reçoit cette erreur
Code:
1 2 3 4 5 6 7
|
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lucasAndresForni_Win32 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at com.lucasF.JCommUSB_2_0.USBDevice.<clinit>(USBDevice.java:45)
at MainClass.main(MainClass.java:9) |
Et en utilisant javaxUsb j'ai cette erreur,
Code:
1 2 3 4 5 6 7
|
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 <usbJNI.dll> :
no usbJNI in java.library.path
at ShowTopology.getVirtualRootUsbHub(ShowTopology.java:58)
at DefaultControlPipe.main(DefaultControlPipe.java:26) |
Cette exception arrive dés la 1er ligne d'un exemple pris sur internet.
Je doit utilisé l'une de ces bibliothèques. AIDEZ MOI SVP je suis coincé sa fait 2 jours que je cherche dans internet sans rien trouver :?