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

Error executing Getting Started example. #8

Closed MaXwEllDeN closed 8 years ago

MaXwEllDeN commented 8 years ago

I am trying to execute the Example here https://github.com/RishiGupta12/serial-communication-manager, in Getting Started.

Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/scm_tuartx1/linux_1.0.4_x86_64.so: libudev.so.0: Não é possivel abrir arquivo de objetos compartilhado: Arquivo ou diretório não encontrado at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824) at java.lang.Runtime.load0(Runtime.java:809) at java.lang.System.load(System.java:1086) at com.embeddedunveiled.serial.internal.SerialComPortJNIBridge.loadNativeLibrary(SerialComPortJNIBridge.java:335) at com.embeddedunveiled.serial.SerialComManager.(SerialComManager.java:581) at Main.main(Main.java:11)

RishiGupta12 commented 8 years ago
flbauer commented 8 years ago

Hello Rishi, I am trying on Windows 7 (32-bit) and get an analogous error: Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\Florian\AppData\Local\Temp\scm_tuartx1\windows_1.0.4_x86.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) ...

Cannot find the dll in the internet? Is there an udev for Windows? An advice would be welcome.

RishiGupta12 commented 8 years ago

Hi, For windows please use dependency walker to find dependent libraries you need to install. The SCM uses minimal libraries that should be already installed on your system. Also share the output of dependency walker with me so that I can analyze and help you.

https://groups.google.com/forum/#!topic/serial-communication-manager/pZIrrdn43nY

marccollin commented 7 years ago

Have you found windows_1.0.4_x86.dll file?