RishiGupta12 / SerialPundit

Serial port communication in Java - FTDI D2XX, HID API, X/Y modem
GNU Affero General Public License v3.0
125 stars 56 forks source link

My app not work some windows 10 #37

Closed makarna35 closed 6 years ago

makarna35 commented 6 years ago

Hi; My app works one more windows 10. But I see not work one PC why?:

C:>java -jar EWC.jar Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: C:\Users\muhar\AppData\Local\Temp\sp_tuartx1\spusbwinx86.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.load0(Unknown Source) at java.lang.System.load(Unknown Source) at com.serialpundit.usb.internal.SerialComUSBJNIBridge$2.run(SerialComUSBJNIBridge.java:340) at com.serialpundit.usb.internal.SerialComUSBJNIBridge$2.run(SerialComUSBJNIBridge.java:1) at java.security.AccessController.doPrivileged(Native Method) at com.serialpundit.usb.internal.SerialComUSBJNIBridge.loadNativeLibrary(SerialComUSBJNIBridge.java:338) at com.serialpundit.usb.SerialComUSB.(SerialComUSB.java:136) at ewc.Main.(Main.java:239) at ewc.EWC$1.run(EWC.java:42) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)

RishiGupta12 commented 6 years ago

Does both computer are 64 bit or 32 bit Windows ? On 30-May-2018 3:20 PM, "makarna35" notifications@github.com wrote:

Hi; My app works one more windows 10. But I see not work one PC why?:

C:>java -jar EWC.jar Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: C:\Users\muhar\AppData\Local\Temp\sp_tuartx1\spusbwinx86.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.load0(Unknown Source) at java.lang.System.load(Unknown Source) at com.serialpundit.usb.internal.SerialComUSBJNIBridge$2.run( SerialComUSBJNIBridge.java:340) at com.serialpundit.usb.internal.SerialComUSBJNIBridge$2.run( SerialComUSBJNIBridge.java:1) at java.security.AccessController.doPrivileged(Native Method) at com.serialpundit.usb.internal.SerialComUSBJNIBridge.loadNativeLibrary( SerialComUSBJNIBridge.java:338) at com.serialpundit.usb.SerialComUSB.(SerialComUSB.java:136) at ewc.Main.(Main.java:239) at ewc.EWC$1.run(EWC.java:42) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl. doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/RishiGupta12/SerialPundit/issues/37, or mute the thread https://github.com/notifications/unsubscribe-auth/AJNSrJdAc8xR1p4uKU0NocbodknW5YEoks5t3mtbgaJpZM4US89p .

RishiGupta12 commented 6 years ago

spusbwinx86.dll is present in jar file, your computer does not have some libraries installed. Please run dependency walker http://www.dependencywalker.com/ and see what windows libraries you have not installed.

makarna35 commented 6 years ago

Thanks. Problem fixed. Problem cause of missing MSVCR120.dll file