florentbr / OWON-VDS1022

Unofficial release for the OWON VDS1022/I Oscilloscope
261 stars 45 forks source link

Driver error looping on M1/Monterney #56

Closed theoroborus closed 2 years ago

theoroborus commented 2 years ago

After hours of trying your repo and tinwhisker repo, I decided to repport that issue. While I get no issues installing it, I don't manage to get my device detected. I get this error looping in the terminal when starting the .jar ;

java.lang.NoClassDefFoundError: Could not initialize class ch.ntb.usb.LibusbJava
    at com.owon.uppersoft.vds.core.usb.CDevice.scanMatchedDevices(CDevice.java:751)
    at com.owon.uppersoft.dso.source.usb.USBSourceManager.refreshUSBPort(USBSourceManager.java:108)
    at com.owon.uppersoft.dso.source.comm.detect.USBLoopChecker.checkUSBDevice(USBLoopChecker.java:93)
    at com.owon.uppersoft.dso.source.comm.USBDaemonHelper.onNotConnecting(USBDaemonHelper.java:31)
    at com.owon.uppersoft.vds.machine.InfiniteDaemonTiny0.onNotConnecting(InfiniteDaemonTiny0.java:30)
    at com.owon.uppersoft.dso.source.comm.Flow.run(Flow.java:74)
    at com.owon.uppersoft.dso.global.ControlAppsTiny$1.run(ControlAppsTiny.java:37)
florentbr commented 2 years ago

This exception usually occur when the architecture is different between Java and the USB library. Make sure that your JRE and the terminal used to install are both aarch64 and not Rosetta emulated. Have a look at #50

theoroborus commented 2 years ago

Thanks a lot for the head's up ! Same problem, but reversed situation. I had a x64 Java on an M1 system. I got to replace the arm drivers with the x64 drivers, from the install folder to the ressources folder in the *.app. And voilà !